R01UH0822EJ0100 Rev.1.00
Page 327 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
19.2
Register Descriptions
19.2.1
Timer Control Register (TCR)
MTU0.TCR, MTU1.TCR, MTU2.TCR, MTU3.TCR, MTU4.TCR
x: Don’t care
The TCR register controls the TCNT operation for each channel in combination with the TCR2 register. The MTU has a
total of eight TCR registers, one each for MTU0 to MTU4 and three (TCRU, TCRV, and TCRW) for MTU5. TCR values
should be specified only while TCNT operation is stopped.
TPSC[2:0] Bits (Time Prescaler Select)
These bits select the TCNT count clock source. The count clock source can be selected independently for each channel.
Refer to
CKEG[1:0] Bits (Clock Edge Select)
These bits select the clock edge, including the MTIOC1A pin. When the internal clock is counted at both edges, the
count clock period is halved (e.g. PCLKB/4 at both edges = PCLKB/2 at rising edge). If phase counting mode is used on
MTU1 and MTU2, the setting of these bits is ignored and the phase counting mode setting has priority. Internal clock
edge selection is valid when the count clock source is PCLKB/2 or slower. When PCLKB/1 or the overflow/underflow in
another channel is selected for the count clock source, a value can be written to these bits but counter operation compiles
with the initial value.
CCLR[2:0] Bits (Counter Clear Source Select)
These bits select the TCNT counter clearing source. Refer to
Address(es): MTU0.TCR 0009 5300h, MTU1.TCR 0009 5380h, MTU2.TCR 0009 5400h, MTU3.TCR 0009 5200h,
MTU4.TCR 0009 5201h
b7
b6
b5
b4
b3
b2
b1
b0
CCLR[2:0]
CKEG[1:0]
TPSC[2:0]
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b2 to b0
Time Prescaler Select
Refer to Table 19.6 to Table 19.9.
R/W
b4, b3
Clock Edge Select
b4 b3
0 0: Count at rising edge
0 1: Count at falling edge
1 x: Count at both edges
R/W
b7 to b5
Counter Clear Source Select
Refer to Table 19.4 and Table 19.5.
R/W