[Menu]>[Guide to use the PIC]>[873 Hardware]>[SFR]


SFR explanation for PIC16F873(10)
TMR1L, TMR1H ( Timer 1 Count register ) 0Eh, 0Fh
This register is a register for the timer1 count. A maximum of 65535 counts can be set.
TMR1L for low byte and TMR1H for high byte.
Two registers are combined and works as a 16 bits register. The time-out interruption occurs when overflowing(FFFFh to 0000h) in the count with timer1.
This timer can be independently used, but it is possible to use for the capture or compare mode of CCP feature.

As for the operation of the CCP, refer to CCP feature of PIC16F873.


T1CON ( Timer1 control register ) 10h
This register controls the condition of Timer1.
The value in the parenthesis is in the condition immediately after the turning on.
T1CKPS1,T1CKPS0 : Timer1 Input Clock Prescale Select bits
T1CKPS1T1CKPS0Prescale Value
001:1
011:2
101:4
111:8

T1OSCEN : Timer1 Oscillator Enable Control bit
1:Oscillator is enabled
0:Oscillator is shut off (The oscillator inverter is turned off to eliminate power drain)

T1SYNC : Timer1 External Clock Input Synchronization Control bit (This bit is ignored if TMR1CS=0)
1:Do not synchronize external clock input
0:Synchronize external clock input

TMR1CS : Timer1 Clock Source Select bit
1:External clock from pin RC0/T1OSO/T1CKI (on the rising edge)
0:Internal clock ( Fosc/4 )

TMR1ON : Timer1 On bit
1:Enables Timer1
0:Stop Timer1