123
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 0
Preliminary User’s Manual U16035EJ1V0UM
Figure 6-19. Control Register Settings for Pulse Width Measurement by Means of Restart
(a) 16-bit timer mode control register 0 (TMC0)
0
0
0
0
TMC03
1
TMC02
0
TMC01
0/1
OVF0
0
TMC0
Clears and starts at valid edge of TI00/TO0/P70 pin.
(b) Capture/compare control register 0 (CRC0)
0
0
0
0
0
CRC02
1
CRC01
1
CRC00
1
CRC0
CR00 as capture register
Captures to CR00 at edge reverse to valid edge of TI00/TO0/P70.
CR01 as capture register
Remark
0/1: Setting 0 or 1 allows another function to be used simultaneously with pulse width measurement.
See
Figure 6-2
.
Figure 6-20. Timing of Pulse Width Measurement Operation by Means of Restart
(with Rising Edge Specified)
t
0000H
0001H
0000H
0001H
0000H 0001H
D0
D0
INTTM01
D1
×
t
D2
×
t
D2
D1
D2
D1
CR00 capture value
Count clock
TM0 count value
TI00 pin input
CR01 capture value