220
ยต
PD78214 Sub-Series
Fig. 7-138 Interrupt Request Generation Using External Event Counter
Countable
timing of
TM2
TM2 n
n-1 n+1
ICI
CI
8 to 12 clocks
16 clocks (Max.)
Count clock of
TM2
Coincidence
between INTP2
and ICI
TM2 counts up here
or is compared with
compare register.
ICI: Signal that has gone
through the edge
detector of CI input
(2) When 8-bit timer/counter 2 is used as an external event counter, TM2 alone cannot distinguish between the
state where no valid edge is applied and the state where only one valid edge has been applied. (See Fig. 7-
139.) In either case, the value of TM2 is 0. When the states need to be distinguished from each other, use the
INTP2 interrupt request flag. (The same pin is used as the INTP2 pin as well as the CI pin, so that the functions
can be used at the same time.) Fig. 7-140 shows an example of distinction.
Fig. 7-139 Example Where Input of No Valid Edge Cannot Be Distinguished from Input of
Only One Valid Edge with External Event Counter
Cannot be distinguished
TM2 1
02
CI
0
Count starts