R01UH0823EJ0100 Rev.1.00
Page 624 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(14) Operation When Error Occurs in PWM Mode 2 and Operation is Restarted in PWM Mode 1
shows a case in which an error occurs in PWM mode 2 and operation is restarted in PWM mode 1 after
re-setting.
Figure 23.129
Error Occurrence in PWM Mode 2, Recovery in PWM Mode 1
(1) to (9) are the same as in
.
(10) Set PWM mode 1.
(11) Initialize the pins with the TIOR register. (In PWM mode 1, a waveform is not output on the MTIOCnB
(MTIOCnD) pins. If a level is to be output, make the required general output port settings in the I/O port’s port
direction register (PDR) and port output data register (PODR).)
(12) Use the MPC and the port mode register (PMR) for the I/O port to set up MTU output.
(13) Restart operation by setting the TSTR register.
(15) Operation When Error Occurs in PWM Mode 2 and Operation is Restarted in PWM Mode 2
shows a case in which an error occurs in PWM mode 2 and operation is restarted in PWM mode 2 after
re-setting.
Figure 23.130
Error Occurrence in PWM Mode 2, Recovery in PWM Mode 2
(1) to (9) are the same as in
.
(10) This step is not necessary when restarting in PWM mode 2.
(11) Initialize the pins with the TIOR register. (In PWM mode 2, a waveform is not output on the cycle register pins. If a
level is to be output, make the required general output port settings in the I/O port’s port direction register (PDR)
and port output data register (PODR).)
(12) Use the MPC and the port mode register (PMR) for the I/O port to set up MTU output.
(13) Restart operation by setting the TSTR register.
(1)
Reset
MTU module output
(2)
TMDR
(PWM2)
(3)
TIOR
(1 init
0 out)
(5)
TSTR
(1)
(6)
Match
(7)
Error
occurs
(8)
Port
output
(9)
TSTR
(0)
(10)
TMDR
(PWM1)
(11)
TIOR
(1 init
0 out)
(13)
TSTR
(1)
PORT output
Pxx
Pxx
MTIOCnA
MTIOCnB
(4)
MPC
(MTU)
(12)
MPC
(MTU)
Not initialized (MTIOCnB)
Hi-Z
Hi-Z
Not initialized (cycle register)
(1)
Reset
MTU module output
(2)
TMDR
(PWM2)
(3)
TIOR
(1 init
0 out)
(5)
TSTR
(1)
(6)
Match
(7)
Error
occurs
(8)
Port
output
(9)
TSTR
(0)
(10)
TMDR
(PWM2)
(11)
TIOR
(1 init
0 out)
(13)
TSTR
(1)
PORT output
Pxx
Pxx
MTIOCnA
MTIOCnB
(4)
MPC
(MTU)
(12)
MPC
(MTU)
Not initialized (cycle register)
Not initialized (cycle register)
Hi-Z
Hi-Z