R01UH0822EJ0100 Rev.1.00
Page 500 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
19.7
MTU Output Pin Initialization
19.7.1
Operating Modes
The MTU has the following six operating modes. Waveforms can be output in any of these modes.
Normal mode (MTU0 to MTU4)
PWM mode 1 (MTU0 to MTU4)
PWM mode 2 (MTU0 to MTU2)
Phase counting modes 1 to 5 (MTU1 and MTU2)
Complementary PWM mode (MTU3 and MTU4)
Reset-synchronized PWM mode (MTU3 and MTU4)
This section describes how to initialize the MTU output pins in each of these modes.
19.7.2
Operation in Case of Re-Setting Due to Error during Operation
If an error occurs during MTU operation, MTU output should be cut off by the system. The output can be cut off by
allowing non-active level output from the pins by setting the pins as general output ports using the port direction registers
(PDR), port output data registers (PODR), and port mode registers (PMR) of the I/O ports. MTU output can be disabled
through TIOR settings. Complementary PWM output (MTIOC3B, MTIOC3D, MTIOC4A, MTIOC4B, MTIOC4C and
MTIOC4D) should be specified through TOERA setting. For PWM output pins, output can also be cut by hardware,
using port output enable 3 (POE3). The pin initialization procedures for re-setting due to an error during operation and
the procedures for restarting in a different mode after re-setting are described below.
The MTU has six operating modes, as stated above. There are thus 36 mode transition combinations, but some transitions
are not available with certain channel and mode combinations. Available mode transition combinations are shown in
.
Normal:
Normal mode
PWM1:
PWM mode 1
PWM2:
PWM mode 2
PCM:
Phase counting modes 1 to 5
CPWM:
Complementary PWM mode
RPWM:
Reset-synchronized PWM mode
Table 19.64
Mode Transition Combinations
Normal
PWM1
PWM2
PCM
CPWM
RPWM
Normal
(1)
(2)
(3)
(4)
(5)
(6)
PWM1
(7)
(8)
(9)
(10)
(11)
(12)
PWM2
(13)
(14)
(15)
(16)
Not available
Not available
PCM
(17)
(18)
(19)
(20)
Not available
Not available
CPWM
(21)
(22)
Not available
Not available
(23) (24)
(25)
RPWM
(26)
(27)
Not available
Not available
(28)
(29)