On-Chip Peripheral Components
C513AO
User’s Manual
6-24
05.99
6.2.2.1
Timer/Counter 2 Registers
Six special function registers control Timer/Counter 0 and 1 operation:
• TL2/TH2 and RC2L/RC2H are counter and reload/capture registers with low and high bytes.
• T2CON and T2MOD are control and mode select registers.
Special Function Register TL2 (Address CCH)
Reset Value: 00H
Special Function Register TH2 (Address CDH)
Reset Value: 00H
Special Function Register RC2L (Address CAH)
Reset Value: 00H
Special Function Register RC2H (Address CBH)
Reset Value: 00H
Bit
Function
TL2.7-0
Timer 2 value low byte
The TL2 register holds the 8-bit low part of the 16-bit Timer 2 count value.
TH2.7-0
Timer 2 value high byte
The TH2 register holds the 8-bit high part of the 16-bit Timer 2 count value.
RC2L.7-0
Reload / capture Timer 2 register low byte
RC2L holds the 8-bit low byte of the 16-bit Timer 2 reload or capture value.
RC2H.7-0
Reload / capture Timer 2 register high byte
RC2H holds the 8-bit high byte of the 16-bit Timer 2 reload or capture value.
.7
.6
.5
.4
CCH
TL2
Bit No.
7
6
5
4
3
2
1
0
MSB
LSB
.3
.2
.1
.0
.7
.6
.5
.4
CDH
TH2
.3
.2
.1
.0
.7
.6
.5
.4
CAH
RC2L
.3
.2
.1
.0
.7
.6
.5
.4
CBH
RC2H
.3
.2
.1
.0