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


SFR explanation for PIC16F873(11)
TMR2 ( Timer 2 Count register ) 11h
This register is a register for the timer2 count. A maximum of 255 counts can be set.
The time-out interruption occurs when overflowing(FFh to 00h) in the count with timer2.
This timer can be independently used, but it is possible to use for the PWM mode of CCP feature.

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



T2CON ( Timer 2 Control Register ) 12h
This register controls the condition of Timer2.
The value in the parenthesis is in the condition immediately after the turning on.

TOUTPS3,TOUTPS2, TOUTPS1, TOUTPS0 : Timer2 Output Postscale Select bits
TOUTPS3TOUTPS2TOUTPS1TOUTPS0Postscale
00001:1
00011:2
00101:3
00111:4
01001:5
01011:6
01101:7
01111:8
10001:9
10011:10
10101:11
10111:12
11001:13
11011:14
11101:15
11111:16

TMR2ON : Timer2 On bit
1:Timer2 is on
0:Timer2 is off

T2CKPS1,T2CKPS0 : Timer2 Clock Prescale Select bit
T2CKPS1T2CKPS0Prescale
001:1
011:4
101:16
111:16

In case of T2CKPS1 is "1", the value of prescale is only 1:16.