R01UH0822EJ0100 Rev.1.00
Page 518 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(21) Operation When Error Occurs in Complementary PWM Mode and Operation is Restarted in
Normal Mode
shows a case in which an error occurs in complementary PWM mode and operation is restarted in normal
mode after re-setting.
Figure 19.163
Error Occurrence in Complementary PWM Mode, Recovery in Normal Mode
(1) After a reset, the MTU3 output goes low and the ports enter high-impedance state.
(2) Select the complementary PWM output level and enable or disable cyclic output with registers TOCR1A and
TOCR2A.
(3) Set complementary PWM mode.
(4) Enable output in MTU3 and MTU4 with the TOERA register.
(5) Set MTU output using the MPC and port mode registers (PMR) corresponding to the I/O ports.
(6) Start count operation by setting the TSTRA register.
(7) The complementary PWM waveform is output on compare match occurrence.
(8) An error occurs.
(9) Allow non-active level output 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.
(10) Stop count operation by setting the TSTRA register. (MTU output becomes the initial complementary PWM output
value).
(11) Set normal mode (MTU output goes low).
(12) Initialize the pins with the TIOR register.
(13) Set MTU output using the MPC and port mode registers (PMR) corresponding to the I/O ports.
(14) Restart operation by setting the TSTRA register.
(1)
Reset
Hi-Z
Hi-Z
Hi-Z
MTU module output
(2)
TOCR
(3)
TMDR
(CPWM)
(4)
TOER
(1)
(6)
TSTR
(1)
(7)
Match
(8)
Error
occurs
(9)
Port
output
(10)
TSTR
(0)
(11)
TMDR
(normal)
(12)
TIOR
(1 init
0 out)
(14)
TSTR
(1)
MTIOC3A
MTIOC3B
MTIOC3D
PORT output
Pxx
Pxx
Pxx
(5)
MPC
(MTU)
(13)
MPC
(MTU)