CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ6V0UD
221
Figure 7-16. Control Register Settings for Pulse Width Measurement by Restarting
(a) 16-bit timer mode control registers 0, 1 (TMC0, TMC1)
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 (CRC0, CRC1)
CRCn2
CRCn1
CRCn0
CRCn
0
0
0
0
0
1
1
1
CRn0 used as capture
register
Captures to CRn0 at
edge reverse to valid
edge of TIn0.
CRn1 used as capture
register
Remark
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
7.1.4 (1) 16-bit timer mode control registers 0, 1
(TMC0, TMC1)
and
7.1.4 (2) Capture/compare control registers 0, 1 (CRC0, CRC1)
.
Figure 7-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
Count clock
TMn count value
TI0n0 pin input
INTTM0n1
Value loaded to CRn1
Value loaded to CRn0
Remark
n = 0, 1
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...