R01UH0823EJ0100 Rev.1.00
Page 625 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(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 23.131
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) 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
(PCM)
(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