typical timer1 reload example in asm
; All interrupts are disabled
CLRF TMR1L ; Clear Low byte, Ensures no
; rollover into TMR1H
MOVLW HI_BYTE ; Value to load into TMR1H
MOVWF TMR1H, F ; Write High byte
MOVLW LO_BYTE ; Value to load into TMR1L
MOVWF TMR1H, F ; Write Low byte
; Re-enable the Interrupt (if required)
this is 7 instructions when you include the enable/disable interrupts
another thing to consider is that your typical xtal is only accurate to about 50 parts per million , so unless your xtal is in a temperature controlled oven your expecting too much, fudging the preload is not a proper solution.
Bookmarks