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