11. Timer 0/1/2 A96G166/A96A166/A96S166 User’s manual
T2CRL (Timer 2ControlLow Register): C2H
Select Timer 2 clock source. fx is main system clock frequency
Selected clock by T2ECS bit
When T2 Match 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.
T2 interrupt no generation
Timer 2 External Clock Selection
Select external clock (EC2)
T2O/PWM2O Polarity Selection
Start High (T2O/PWM2O is low level at disable)
Start Low (T2O/PWM2O is high level at disable)
Timer 2 External Clock Edge Selection
External clock falling edge
External clock rising edge
Timer 2 Counter Read Control
Load the counter value to the B data register (When write,
automatically cleared “0” after being loaded)