R01UH0822EJ0100 Rev.1.00
Page 338 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
MTU5.TIORU, MTU5.TIORV, MTU5.TIORW
The TIOR register controls the TGR register. The MTU has a total of 11 TIOR registers, two each for MTU0, MTU3,
and MTU4, one each for MTU1 and MTU2, and three (MTU5.TIORU/TIORV/TIORW) for MTU5. The TIOR register
should be set when the TMDR register setting is normal mode, PWM mode, or phase counting mode.
Note that TIOR is affected by the TMDR1 setting.
The initial output specified by TIOR is valid when the counter is stopped (the CSTn bit in TSTRA is set to 0). Note also
that, in PWM mode 2, the output at the point at which the counter becomes 0000h is specified.
When TGRC or TGRD is designated for buffer operation, this setting is invalid and the register operates as a buffer
register.
x: Don't care
Note 1. When PCLKB/1 is selected as the count clock for MTU1, MTU0 input capture is not generated. Do not select PCLKB/1 as the
count clock for MTU1.
Address(es): MTU5.TIORU 0009 5486h, MTU5.TIORV 0009 5496h, MTU5.TIORW 0009 54A6h
b7
b6
b5
b4
b3
b2
b1
b0
—
—
—
IOC[4:0]
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b4 to b0
I/O Control C
Refer to the following table.
MTU5.TIORU, MTU5.TIORV, MTU5.TIORW: Table 19.29
R/W
b7 to b5
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
Table 19.13
TIORH (MTU0)
Bit 7
Bit 6
Bit 5
Bit 4
Description
IOB[3]
IOB[2]
IOB[1]
IOB[0]
TGRB Register Function
MTIOC0B Pin Function
0
0
0
0
Output compare register
Output prohibited
0
0
0
1
Initial output is low.
Low output at compare match.
0
0
1
0
Initial output is low.
High output at compare match.
0
0
1
1
Initial output is low.
Toggle output at compare match.
0
1
0
0
Output prohibited
0
1
0
1
Initial output is high.
Low output at compare match.
0
1
1
0
Initial output is high.
High output at compare match.
0
1
1
1
Initial output is high.
Toggle output at compare match.
1
0
0
0
Input capture register
Input capture at rising edge.
1
0
0
1
Input capture at falling edge.
1
0
1
x
Input capture at both edges.
1
1
x
x
Capture input source is the clock source for counting in MTU1.
Input capture on counting up or down by MTU1.TCNT (LWA = 0) or
MTU1.TCNTLW (LWA = 1).*