R01UH0823EJ0100 Rev.1.00
Page 616 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(5) Operation When Error Occurs in Normal Mode and Operation is Restarted in Complementary
PWM Mode
shows a case in which an error occurs in normal mode and operation is restarted in complementary PWM
mode after re-setting.
Figure 23.120
Error Occurrence in Normal Mode, Recovery in Complementary PWM Mode
(1) to (10) are the same as in
(11) Initialize the normal mode waveform generation block with the TIOR register.
(12) Disable operation of the normal mode waveform generation block with the TIOR register.
(13) Disable output in MTU3 and MTU4 with the TOER register.
(14) Select the complementary PWM mode output level and enable or disable cyclic output with the TOCR register.
(15) Set complementary PWM mode.
(16) Enable output in MTU3 and MTU4 with the TOER register.
(17) Use the MPC and the port mode register (PMR) for the I/O port to set up MTU output.
(18) Restart operation by setting the TSTR register.
(1)
Reset
(2)
TMDR
(normal)
(3)
TOER
(1)
(4)
TIOR
(1 init
0 out)
(6)
TSTR
(1)
(7)
Match
(8)
Error
occurs
(9)
Port
output
(10)
TSTR
(0)
(11)
TIOR
(0 init
0 out)
(12)
TIOR
(disabled)
(13)
TOER
(0)
(14)
TOCR
(15)
TMDR
(CPWM)
(16)
TOER
(1)
(18)
TSTR
(1)
(5)
MPC
(MTU)
(17)
MPC
(MTU)
MTU module output
MTIOC3A
MTIOC3B
MTIOC3D
PORT output
Pxx
Pxx
Pxx
Hi-Z
Hi-Z
Hi-Z