http://www.picbasic.co.uk/forum/show...7472#post17472
Has the example to set the pre-scaler.
Then in your code for the pre-load.
Then in the interrupt routineCode:PreLoad VAR WORD PreLoad = 21537 TMR1L = PreLoad.LowByte TMR1H = PreLoad.HighByte
Maybe....Code:TMR1L = PreLoad.LowByte ' Load the timer with preload value. TMR1H = PreLoad.HighByte
Bookmarks