R01UH0823EJ0100 Rev.1.00
Page 539 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
shows examples of PWM waveform output with 0% duty and 100% duty in PWM mode 1.
In this example, TGRA compare match is set as the TCNT clearing source, a low level is set as the initial output value
and output value for the TGRA register, and a high level is set as the output value for the TGRB register.
Figure 23.28
Examples of PWM Mode Operation (PWM Waveform Output with 0% Duty and 100% Duty)
(n = 0 to 4)
Time
0% duty
TGRB
modified
Output does not change when compare
matches occur simultaneously in cycle
register and duty register
0% duty
TCNT value
TGRB modified
TGRA
0000h
MTIOCnA
TGRB
TGRA
0000h
MTIOCnA
TGRB
TGRA
0000h
MTIOCnA
TGRB
Time
Time
100% duty
TCNT value
TGRB modified
TGRB modified
TGRB modified
TGRB modified
100% duty
TGRB modified
TCNT value
TGRB modified
Output does not change when compare
matches occur simultaneously in cycle
register and duty register
TGRB modified
Because of no signal change,
waveform does not change even
if output is high when second
TGRB compare match occurs
(1) Example of operation to output the PWM waveform with 0% duty.
(2) Example of operation to output the PWM waveform with 100% duty.
(3) Example of operation to output the PWM waveform with 0% duty cycle after the output with 100% duty.