R01UH0823EJ0100 Rev.1.00
Page 612 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
23.7.3
Overview of Pin Initialization Procedures and Mode Transitions in Case of Error
during Operation
When making a transition to a mode (Normal, PWM1, PWM2, or PCM) in which the pin output level is selected by
the TIOR register setting, initialize the pins by means of the TIOR register setting.
In PWM mode 1, waveforms are not output to the MTIOCnB and MTIOCnD (n = 3, 4) pins. When a pin is
configured for MTIOCnB or MTIOCnD, it enters high-impedance state. To output a specified level, set the pin to
general output port.
In PWM mode 2, waveforms are not output to the cycle register pins. When a pin is configured for MTIOCnm (n =
0 to 2; m = A to D), it enters high-impedance state. To output a specified level, set the pin to general output port.
In normal mode or PWM 2 mode, if the TGRC and TGRD register operate as buffer registers, waveforms are not
output to the corresponding pins (MTIOCnC or MTIOCnD (n = 0, 3, 4)). When a pin is configured for MTIOCnC
or MTIOCnD, it enters high-impedance state. To output a specified level, set the pin to general output port.
In PWM mode 1, if either TGRC or TGRD register operates as a buffer register, waveforms are not output to the
corresponding pins (MTIOCnC or MTIOCnD (n = 0, 3, 4)). When a pin is configured for MTIOCnC or MTIOCnD,
it enter high-impedance state. To output a specified level, set the pin to general output port.
When making a transition to a mode (CPWM or RPWM) in which the pin output level is selected by the timer
output control register (TOCR) setting, temporarily disable output in MTU3 and MTU4 with the TOER register. At
this time, when a pin is configured for MTIOCnm (n = 3, 4; m = A to D), it enters high-impedance state. To output
a specified level, set the pin to general output port. Switch to normal mode, perform initialization with the TIOR
register, and restore the TIOR register to its initial value. After that, operate the MTU in accordance with the mode
setting procedure (TOCR setting, TMDR setting, and TOER setting).
Note:
Channel number is substituted for “n” indicated in this section unless otherwise specified.
Pin initialization procedures are described below for the numbered combinations in
. The active level is
assumed to be low.