R01UH0823EJ0100 Rev.1.00
Page 479 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
23.2.2
Timer Mode Register (TMDR)
The TMDR register specifies the operating mode of each channel. The TMDR register values should be specified only
while the TCNT operation is stopped.
x: Don't care
Note:
Only set the corresponding operating mode listed above for each channel.
Note 1. Reset-synchronized PWM mode and complementary PWM mode can only be set for MTU3.
When MTU3 is set to reset-synchronized PWM mode or complementary PWM mode, the MTU4 settings become ineffective and
conform to the MTU3 setting, respectively. MTU4 should be set to normal mode.
Address(es): MTU0.TMDR 000D 0B01h, MTU1.TMDR 000D 0B81h, MTU2.TMDR 000D 0C01h, MTU3.TMDR 000D 0A02h,
MTU4.TMDR 000D 0A03h
b7
b6
b5
b4
b3
b2
b1
b0
—
BFE
BFB
BFA
MD[3:0]
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b3 to b0
MD[3:0]
Mode Select
These bits specify the timer operating mode. Refer to Table 23.10 for
details.
R/W
b4
Buffer Operation A
0: TGRA and TGRC operate normally
1: TGRA and TGRC used together for buffer operation
R/W
b5
Buffer Operation B
0: TGRB and TGRD operate normally
1: TGRB and TGRD used together for buffer operation
R/W
b6
Buffer Operation E
0: MTU0.TGRE and MTU0.TGRF operate normally
1: MTU0.TGRE and MTU0.TGRF used together for buffer operation
R/W
b7
—
Reserved
This bit is read as 0. The write value should be 0.
R/W
Table 23.10
Operating Mode Setting by MD[3:0] Bits
Bit 3
Bit 2
Bit 1
Bit 0
Description
MTU0
MTU1
MTU2
MTU3
MTU4
MD[3]
MD[2]
MD[1]
MD[0]
0
0
0
0
Normal mode
0
0
0
1
Setting prohibited
0
0
1
0
PWM mode 1
0
0
1
1
PWM mode 2
0
1
0
0
Phase counting mode 1
0
1
0
1
Phase counting mode 2
0
1
1
0
Phase counting mode 3
0
1
1
1
Phase counting mode 4
1
0
0
0
Reset-synchronized PWM mode*
1
0
0
1
Setting prohibited
1
0
1
x
Setting prohibited
1
1
0
0
Setting prohibited
1
1
0
1
Complementary PWM mode 1 (transfer at crest)*
1
1
1
0
Complementary PWM mode 2 (transfer at trough)*
1
1
1
1
Complementary PWM mode 3 (transfer at crest and
trough)*