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
0
2
CI
0
Count starts
Содержание PD78212
Страница 11: ......
Страница 53: ...24 ...
Страница 61: ...32 µPD78214 Sub Series 9 VSS Ground 10 NC non connection Not connected inside the chip ...
Страница 65: ...36 ...
Страница 83: ...54 ...
Страница 135: ...106 ...
Страница 271: ...242 ...
Страница 405: ...376 ...
Страница 417: ...388 ...
Страница 423: ...394 ...
Страница 449: ...420 ...
Страница 457: ...428 ...
Страница 471: ...442 ...
Страница 487: ...458 ...