R01UH0823EJ0100 Rev.1.00
Page 628 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(19) Operation When Error Occurs in Phase Counting Mode and Operation is Restarted in PWM
Mode 2
shows a case in which an error occurs in phase counting mode and operation is restarted in PWM mode 2
after re-setting.
Figure 23.134
Error Occurrence in Phase Counting Mode, Recovery in PWM Mode 2
(1) to (9) are the same as in
.
(10) Set PWM mode 2.
(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.
(20) Operation When Error Occurs in Phase Counting Mode and Operation is Restarted in Phase
Counting Mode
shows a case in which an error occurs in phase counting mode and operation is restarted in phase
counting mode after re-setting.
Figure 23.135
Error Occurrence in Phase Counting Mode, Recovery in Phase Counting Mode
(1) to (9) are the same as in
.
(10) This step is not necessary when restarting in phase counting mode.
(11) Initialize the pins with the TIOR register.
(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
(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)
Hi-Z
Hi-Z
(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
(PCM)
(11)
TIOR
(1 init
0 out)
(13)
TSTR
(1)
MTIOCnA
MTIOCnB
PORT output
Pxx
Pxx
(4)
MPC
(MTU)
(12)
MPC
(MTU)
Hi-Z
Hi-Z