144
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
Preliminary User’s Manual U16035EJ1V0UM
7.4.2 External event counter operation
The external event counter counts the number of external clock pulses to be input to the TI5n by the 8-bit timer
counter 5n (TM5n).
TM5n is incremented each time the valid edge specified with the timer clock select register 5n (TCL5n) is input.
Either the rising or falling edge can be selected.
When the TM5n counted values match the values of 8-bit timer compare register 5n (CR5n), TM5n is cleared to
0 and the interrupt request signal (INTTM5n) is generated.
Whenever the TM5n counted value matches the value of CR5n, INTTM5n is generated.
Remark
n = 0, 1
Figure 7-8. External Event Counter Operation Timing (with Rising Edge Specified)
TI5n
TM5n count value
CR5n
INTTM5n
00
01
02
03
04
05
N–1
N
00
01
02
03
N
N = 00H to FFH
n = 0, 1