A96G140/A96G148/A96A148 User’s manual
12. Timer 0/1/2/3/4/5
111
T1CRL (Timer 1ControlLow Register): BAH
7
6
5
4
3
2
1
0
T1CK2
T1CK1
T1CK0
T1IFR
–
T1POL
T1ECE
T1CNTR
R/W
R/W
R/W
R/W
–
R/W
R/W
R/W
Initial value: 00H
T1CK[2:0]
Select Timer 1 clock source. fx is main system clock frequency
T1CK2
T1CK1 T1CK0 Description
0
0
0
fx/2048
0
0
1
fx/512
0
1
0
fx/64
0
1
1
fx/8
1
0
0
fx/4
1
0
1
fx/2
1
1
0
fx/1
1
1
1
External clock (EC1)
T1IFR
When T1 Interrupt occurs, this bit becomes
‘1’. For clearing bit, write
‘0’ to this bit or auto clear by INT_ACK signal. Writing “1” has no effect.
0
T1 Interrupt no generation
1
T1 Interrupt generation
T1POL
T1O/PWM1O Polarity Selection
0
Start High (T1O/PWM1O is low level at disable)
1
Start Low (T1O/PWM1O is high level at disable)
T1ECE
Timer 1 External Clock Edge Selection
0
External clock falling edge
1
External clock rising edge
T1CNTR
Timer 1 Counter Read Control
0
No effect
1
Load the counter value to the B data register (When write,
automatically cleared
“0” after being loaded)
12.3
Timer 2
A 16-bit timer 2 consists of a multiplexer, timer 2 A data high/low register, timer 2 B data high/low
register and timer 2 control high/low register (T2ADRH, T2ADRL, T2BDRH, T2BDRL, T2CRH, and
T2CRL).
Timer 2 operates in one of the following modes:
16-bit timer/counter mode
16-bit capture mode
16-bit PPG output mode (one-shot mode)
16-bit PPG output mode (repeat mode)