R01UH0822EJ0100 Rev.1.00
Page 503 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(2) Operation When Error Occurs in Normal Mode and Operation is Restarted in PWM Mode 1
shows a case in which an error occurs in normal mode and operation is restarted in PWM mode 1 after
re-setting.
Figure 19.144
Error Occurrence in Normal Mode, Recovery in PWM Mode 1
(1) to (10) are the same as in
(11) Set PWM mode 1.
(12) Initialize the pins with the TIOR register. (In PWM mode 1, waveforms are not output to the MTIOCnB
(MTIOCnD) pins. 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.)
(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.
(3) Operation When Error Occurs in Normal Mode and Operation is Restarted in PWM mode 2
shows a case in which an error occurs in normal mode and operation is restarted in PWM mode 2 after
re-setting.
Figure 19.145
Error Occurrence in Normal Mode, Recovery in PWM Mode 2
(1) to (10) are the same as in
(11) Set PWM mode 2.
(12) 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.)
(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.
Note:
PWM mode 2 can only be selected for MTU0 to MTU2, and therefore the TOERA register setting is not
necessary.
(1)
Reset
MTU module output
Hi-Z
Hi-Z
Not initialized (MTIOCnB)
(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)
TMDR
(PWM1)
(12)
TIOR
(1 init
0 out)
(14)
TSTR
(1)
MTIOCnA
MTIOCnB
PORT output
Pxx
Pxx
(5)
MPC
(MTU)
(13)
MPC
(MTU)
(1)
Reset
MTU module output
Hi-Z
Hi-Z
(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)
TMDR
(PWM2)
(12)
TIOR
(1init
0 out)
(14)
TSTR
(1)
MTIOCnA
MTIOCnB
PORT output
Pxx
Pxx
(5)
MPC
(MTU)
(13)
MPC
(MTU)
Not initialized (period register)