Product Info

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 575 of 1852
Nov 30, 2020
RX23W Group 23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(n) Output Waveform Control at Synchronous Counter Clearing in Complementary PWM Mode
Setting the TWCR.WRE bit to 1 suppresses initial output when synchronous counter clearing occurs in the Tb interval
(Tb2 interval) at the trough in complementary PWM mode and controls abrupt change in duty cycle at synchronous
counter clearing.
Initial output suppression through setting the TWCR.WRE bit to 1 is applicable only when synchronous clearing occurs
in the Tb2 interval as indicated by (10) or (11) in
Figure 23.56. When synchronous clearing occurs outside that interval,
the initial value specified by the TOCR1.OLSN bit and TOCR1.OLSP bit is output. Even in the Tb2 interval, if
synchronous clearing occurs in the initial output period (indicated by (1) in
Figure 23.56) immediately after the
counters start operation, initial value output is not suppressed.
Synchronous clearing in any of MTU0 to MTU2 can cause counter clearing in MTU3 and MTU4.
Figure 23.56 Timing for Synchronous Counter Clearing
Tb2 interval
MTU3.TCNT
MTU4.TCNT
Output waveform is active-low
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
Counter start
Tb1 interval Tb2 interval
MTU3.TGRA
MTU3.TGRB
TCDR
TDDR
0000h
Positive-phase
output
Negative-phase
output