R01UH0822EJ0100 Rev.1.00
Page 514 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(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 19.157
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 to the pin that corresponds to
the TGR register used as a period register. To output a specified level, make necessary settings for general output
ports in the port direction registers (PDR) and port output data registers (PODR) of the I/O ports.)
(12) Set MTU output using the MPC and port mode registers (PMR) corresponding to the I/O ports.
(13) Restart operation by setting the TSTRA register.
(16) Operation When Error Occurs in PWM Mode 2 and Operation is Restarted in Phase Counting
Mode
shows a case in which an error occurs in PWM mode 2 and operation is restarted in phase counting mode
after re-setting.
Figure 19.158
Error Occurrence in PWM Mode 2, Recovery in Phase Counting Mode
(1) to (9) are the same as in
.
(10) Set the phase counting mode.
(11) Initialize the pins with the TIOR register.
(12) Set MTU output using the MPC and port mode registers (PMR) corresponding to the I/O ports.
(13) Restart operation by setting the TSTRA register.
(1)
Reset
MTU module output
Hi-Z
(2)
TMDR
(PWM2)
(3)
TIOR
(1 init
0 out)
(5)
TSTR
(1)
(6)
Match
(8)
Error
occurs
(9)
Port
output
(9)
TSTR
(0)
(10)
TMDR
(PWM2)
(11)
TIOR
(1 init
0 out)
(13)
TSTR
(1)
PORT output
Pxx
Pxx
Hi-Z
MTIOCnA
MTIOCnB
(4)
MPC
(MTU)
(12)
MPC
(MTU)
Not initialized (period register)
Not initialized (period register)
(1)
Reset
MTU module output
(2)
TMDR
(PWM2)
(3)
TIOR
(1 init
0 out)
(5)
TSTR
(1)
(6)
Match
(8)
Error
occurs
(9)
Port
output
(9)
TSTR
(0)
(10)
TMDR
(PCM)
(11)
TIOR
(1 init
0 out)
(13)
TSTR
(1)
PORT output
Pxx
Pxx
Hi-Z
Hi-Z
MTIOCnA
MTIOCnB
(4)
MPC
(MTU)
(12)
MPC
(MTU)
Not initialized (period register)