TMR1 of PIC16F877

You simply read them.
Code:
       movfw   TMR1L

Maybe if you described what you are trying to do we could give a little more help.

Mike.
 
The Timer1 module is a 16-bit timer/counter consisting
of two 8-bit registers (TMR1H and TMR1L), which are
readable and writable. The TMR1 Register pair
(TMR1H:TMR1L) increments from 0000h to FFFFh
and rolls over to 0000h. Timer1 L&H is in BANK0

Very easy to read:
Code:
BANKSEL      TNR1L[INDENT]MOVF    TMR1L,W
MOVWF   TEMP_REG_L
MOVF    TMR1H,W
MOVWF   TEMP_REG_H
[/INDENT]
Have fun....
 
Hi csaba911,

Assuming the timer1 is running. If after executing the above code, TEMP_REG_L=0xFF and TEMP_REG_H=0x12, which of the following values do you like for the real timer value?

a. TIMER1 = 0x11FF
b. TIMER1 = 0x12FF
c. TIMER1 = 0x1200
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…