T
treez
Guest
Hello,
I am using MPLAB.X with the microchip XC8 compiler (free version). The target chip is PIC18F65K22.
I want the oscillator of pic18f65k22 to be 4mhz. (1us per instruction)
I wish to pulse a pic18f65k22 pin as an output with a 500KHz square wave. (50% duty)
Will I have to use inline assembler to do this?
What frequency will it be if I do it in C like this for 64 pulses…
For (i = 64, i=0, i--) {
LATE.RE1 = 0;
LATE.RE1 = 1;
}
I am using MPLAB.X with the microchip XC8 compiler (free version). The target chip is PIC18F65K22.
I want the oscillator of pic18f65k22 to be 4mhz. (1us per instruction)
I wish to pulse a pic18f65k22 pin as an output with a 500KHz square wave. (50% duty)
Will I have to use inline assembler to do this?
What frequency will it be if I do it in C like this for 64 pulses…
For (i = 64, i=0, i--) {
LATE.RE1 = 0;
LATE.RE1 = 1;
}