R01UH0823EJ0100 Rev.1.00 Page 627 of 1823
Jul 31, 2019
RX23W Group 23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(18) Operation When Error Occurs in Phase Counting Mode and Operation is Restarted in PWM
Mode 1
Figure 23.133 shows a case in which an error occurs in phase counting mode and operation is restarted in PWM mode 1
after re-setting.
Figure 23.133 Error Occurrence in Phase Counting Mode, Recovery in PWM Mode 1
(1) to (9) are the same as in Figure 23.132.
(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.
(1)
Reset
MTU module output
(2)
TMDR
(PCM)
(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