SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
CCH3[7:0]
00H
8.11
Timer 2 Function
Timer 2 can operate as timer, event counter, or gated timer as explained later.
8.11.1 Timer Mode
In this mode Timer 2 can by incremented in various frequency that depending on the prescaler. The prescaler is
selected by bit T2PS[2:0] in register T2CON. As shown in Fig. 8-2
Fig. 8-2: Timer mode and Reload mode function
8.11.2 Event Counter Mode
In this mode, the timer is incremented when external signal T2 change value from 1 to 0. The T2 input is sampled in
every cycle. Timer 2 is incremented in the cycle following the one in which the transition was detected. As shown in Fig.
8-3
Fig. 8-3: Event counter mode function
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071
Ver A SM59A16U1 04/12/2013
- 58 -