CHAPTER 8 TIMER/COUNTER FUNCTION
282
User’s Manual U15109EJ3V0UD
Figure 8-16. Control Register Settings for Pulse Width Measurement by Restarting
(a) 16-bit timer mode control registers 0, 1, 7 to 12 (TMC0, TMC1, TMC7 to TMC12)
TMCn3
TMCn2
TMCn1
OVFn
TMCn
0
0
0
0
1
0
0/1
0
Clears and starts at
valid edge of TIn0 pin.
(b) Capture/compare control registers 0, 1, 7 to 12 (CRC0, CRC1, CRC7 to CRC12)
CRCn2
CRCn1
CRCn0
CRCn
0
0
0
0
0
1
1
1
CRn0 as capture
register
Captures to CRn0 at
edge reverse to valid
edge of TIn0.
CRn1 as capture
register
Remarks 1.
0/1: When these bits are reset to 0 or set to 1, other functions can be used along with the pulse
width measurement function. For details, refer to
8.1.4 (1) 16-bit timer mode control
registers 0, 1, 7 to 12 (TMC0, TMC1, TMC7 to TMC12)
and
(2) Capture/compare control
registers 0, 1, 7 to 12 (CRC0, CRC1, CRC7 to CRC12)
.
2.
n = 0, 1, 7 to 12
Figure 8-17. Timing of Pulse Width Measurement by Restarting (with Rising Edge Specified)
t
(D1+1)
×
t
(D2+1)
×
t
D0
D0
D2
D1
D1
D2
0001H
0000H
0001H
0000H
0001H
0000H
INTTMn1
Value loaded to CRn1
Value loaded to CRn0
TIn0 pin input
TMn count value
Count clock
Remark
n = 0, 1, 7 to 12