R01UH0823EJ0100 Rev.1.00
Page 559 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(i)
Initial Output in Complementary PWM Mode
In complementary PWM mode, the initial output is determined by the setting of bits OLSN and OLSP in the TOCR1
register or bits OLS1N to OLS3N and OLS1P to OLS3P in the TOCR2 register.
This initial output is the non-active level of the PWM output and continues from when complementary PWM mode is set
with the TMDR register until the MTU4.TCNT counter exceeds the value set in the TDDR register.
shows
an example of the initial output in complementary PWM mode.
An example of the waveform when the initial PWM duty value is smaller than the TDDR value is shown in
.
Figure 23.44
Example of Initial Output in Complementary PWM Mode (1)
MTU3.TCNT values
MTU4.TGRA
TDDR
MTU3.TCNT
MTU4.TCNT
Initial output
Dead time
Time
Active level
Active level
Complementary
PWM mode
(MTU3.TMDR
setting)
Positive-phase
output
Negative-phase
output
MTU3.TCNT count start
(TSTR setting)
Timer output control register settings
TOCR1.OLSN bit = 0 (initial output: high; active level: low)
TOCR1.OLSP bit = 0 (initial output: high; active level: low)