yzriver
Member level 2
How can I generate a MHz squre wave signal from PIC18F2550. As I understand, the time0 output frequency = 20MHz/4/256=19K. I have a 20MHz crystal on board, timer0 is set in 8 bit mode.
thanks,
thanks,
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How can I generate a MHz squre wave signal from PIC18F2550. As I understand, the time0 output frequency = 20MHz/4/256=19K. I have a 20MHz crystal on board, timer0 is set in 8 bit mode.
thanks,
loop1MHz
bsf LATB,0
nop
bcf LATB,0
nop
goto loop1MHz