On-Chip Peripheral Components
C513AO
User’s Manual
6-16
05.99
6.2.1.1
Timer/Counter 0 and 1 Registers
Six special function registers control Timer/Counter 0 and 1 operation:
• TL0/TH0 and TL1/TH1 are counter registers with low and high bytes.
• TCON and TMOD are control and mode select registers.
Special Function Register TL0 (Address 8AH)
Reset Value: 00H
Special Function Register TH0 (Address 8CH)
Reset Value: 00H
Special Function Register TL1 (Address 8BH)
Reset Value: 00H
Special Function Register TH1 (Address 8DH)
Reset Value: 00H
Bit
Function
TLx.7-0
x = 0-1
Timer/Counter 0/1 Low Register
THx.7-0
x = 0-1
Timer/Counter 0/1 High Register
.7
.6
.5
.4
8AH
TL0
Bit No.
7
6
5
4
3
2
1
0
MSB
LSB
.3
.2
.1
.0
.7
.6
.5
.4
8CH
TH0
.3
.2
.1
.0
.7
.6
.5
.4
8BH
TL1
.3
.2
.1
.0
.7
.6
.5
.4
8DH
TH1
.3
.2
.1
.0
Operating Mode Description
0
“TLx” holds the 5-bit prescaler value.
1
“TLx” holds the lower 8-bit part of the 16-bit timer/counter value.
2
“TLx” holds the 8-bit timer/counter value.
3
TL0 holds the 8-bit timer/counter value; TL1 is not used.
Operating Mode Description
0
“THx” holds the 8-bit timer/counter value.
1
“THx” holds the higher 8-bit part of the 16-bit timer/counter value
2
“THx” holds the 8-bit reload value.
3
TH0 holds the 8-bit timer value; TH1 is not used.