For 60Hz.
Set Timer0 to 16 Bit with a 1:8 prescale
Add this to your variable section
and in the ISR routineCode:PreLoad VAR WORD PreLoad = 23868
I think...Code:TMR0L = PreLoad.LowByte TMR0H = PreLoad.HighByte
For 60Hz.
Set Timer0 to 16 Bit with a 1:8 prescale
Add this to your variable section
and in the ISR routineCode:PreLoad VAR WORD PreLoad = 23868
I think...Code:TMR0L = PreLoad.LowByte TMR0H = PreLoad.HighByte
Dave
Always wear safety glasses while programming.
Bookmarks