CHAPTER 8 TIMER/COUNTER FUNCTION
User’s Manual U15109EJ3V0UD
289
Figure 8-25. Control Register Settings for One-Shot Pulse Output via External Trigger
(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
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
0
0/1
0
CRn0 as compare
register
CRn1 as compare
register
(c) 16-bit timer output control registers 0, 1, 7 to 12 (TOC0, TOC1, TOC7 to TOC12)
OSPTn
OSPEn
TOCn4
LVSn
LVRn
TOCn1
TOEn
TOCn
0
0
1
1
0/1
0/1
1
1
Enables TOn output.
Inverts output on match
between TMn and
CRn0.
Specifies initial value of
TOn output F/F.
Inverts output on match
between TMn and
CRn1.
Sets one-shot pulse
output mode.
Caution
Do not set CRn0 and CRn1 to 0000H.
Remarks 1.
0/1:
When these bits are reset to 0 or set to 1, other functions can be used along with the
square-wave output 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