129
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 0
Preliminary User’s Manual U16035EJ1V0UM
(4) Capture register data retention timings
If the valid edge of the TI00/TO0/P70 pin is input during 16-bit timer capture/compare register 01 (CR01) read,
CR01 carries out capture operation but the capture value at this time is not guaranteed. However, the interrupt
request flag (TMIF01) is set upon detection of the valid edge.
Figure 6-28. Capture Register Data Retention Timing
Count clock
TM0 count value
Edge input
Interrupt request flag
Capture read signal
CR01 interrupt value
N
N + 1
N + 2
M
M + 1
M + 2
X
N + 1
Captured but not
guaranteed
Capture operation
(5) Valid edge setting
Set the valid edge of the TI00/TO0/P70 pin after setting bits 2 and 3 (TMC02 and TMC03) of the 16-bit timer
mode control register 0 (TMC0) to 0, 0, respectively, and then stopping timer operation. Valid edge is set with
bits 4 and 5 (ES00 and ES01) of the prescaler mode register 0 (PRM0).