Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

TMR1 of PIC16F877

Status
Not open for further replies.
You simply read them.:confused:
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
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top