R01UH0823EJ0100 Rev.1.00
Page 696 of 1823
Jul 31, 2019
RX23W Group
25. 16-Bit Timer Pulse Unit (TPUa)
25.3.5
PWM Modes
In PWM mode, PWM waveforms are output from the output pins. low, high, or toggle output can be selected as the
output level in response to compare match of each TPUm.TGRy.
Settings of TGRy registers can output a PWM waveform in the range of 0% to 100% duty cycle.
Specifying TGRy compare match as the counter clearing source enables the cycle to be set in that register. All channels
can be set for PWM mode independently. Synchronous operation is also possible.
There are two PWM modes, as described below.
1. PWM mode 1
PWM waveform is generated from the TIOCAn and TIOCCn pins by pairing TPUm.TGRA with TPUm.TGRB and
TPUm.TGRC with TPUm.TGRD. The outputs specified by the IOA[3:0] bits in TPUm.TIOR(H) and IOC[3:0] bits
in TPUm.TIORL are output from the TIOCAn and TIOCCn pins at compare matches A and C, respectively. The
outputs specified by the IOB[3:0] bits in TPUm.TIOR(H) and IOD[3:0] bits in TPUm.TIORL are output from the
TIOCAn and TIOCCn pins at compare matches B and D, respectively. The initial output value is the value set in
TGRA or TGRC. If the set values of paired TGRy registers are identical, the output value does not change even
when a compare match occurs.
In PWM mode 1, a maximum 3-phase PWM output is possible.
2. PWM mode 2
PWM waveform is generated by using one TPUm.TGRy as the cycle register and the others as duty cycle registers.
The output specified in TPUm.TIORH, TPUm.TIORL, or TPUm.TIOR is performed by compare matches. Upon
counter clearing by a synchronous register compare match, the output value of each pin is the initial value set in
TIORH, TIORL, or TIOR. If the set values of the cycle register and duty cycle register are identical, the output
value does not change even when a compare match occurs.
In PWM mode 2, a maximum 9-phase PWM waveform is possible by combined use with synchronous operation.