A96G140/A96G148/A96A148 User’s manual
12. Timer 0/1/2/3/4/5
101
T0DR (Timer 0 Data Register): B4H
7
6
5
4
3
2
1
0
T0DR7
T0DR6
T0DR5
T0DR4
T0DR3
T0DR2
T0DR1
T0DR0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: FFH
T0DR[7:0]
T0 Data
T0CDR (Timer 0 Capture Data Register: Read Case, Capture mode only): B4H
7
6
5
4
3
2
1
0
T0CDR7
T0CDR6
T0CDR5
T0CDR4
T0CDR3
T0CDR2
T0CDR1
T0CDR0
R
R
R
R
R
R
R
R
Initial value: 00H
T0CDR[7:0]
T0 Capture Data
T0CR (Timer 0 Control Register): B2H
7
6
5
4
3
2
1
0
T0EN
–
T0MS1
T0MS0
T0CK2
T0CK1
T0CK0
T0CC
R/W
–
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
T0EN
Control Timer 0
0
Timer 0 disable
1
Timer 0 enable
T0MS[1:0]
Control Timer 0 Operation Mode
T0MS1 T0MS0 Description
0
0
Timer/counter mode
0
1
PWM mode
1
x
Capture mode
T0CK[2:0]
Select Timer 0 clock source. fx is a system clock frequency
T0CK2
T0CK1 T0CK0 Description
0
0
0
fx/2
0
0
1
fx/4
0
1
0
fx/8
0
1
1
fx/32
1
0
0
fx/128
1
0
1
fx/512
1
1
0
fx/2048
1
1
1
External Clock (EC0)
T0CC
Clear timer 0 Counter
0
No effect
1
Clear the Timer 0 counter (When write, automatically
cleared
“0” after being cleared counter)
NOTES:
1.
Match Interrupt is generated in Capture mode.
2.
Refer to
the external interrupt flag 1 register (EIFLAG1)