R01UH0823EJ0100 Rev.1.00
Page 690 of 1823
Jul 31, 2019
RX23W Group
25. 16-Bit Timer Pulse Unit (TPUa)
(2) Example of Synchronous Operation
shows an example of synchronous operation.
In this example, synchronous operation and PWM mode 1 have been set for TPU0 to TPU2, TPU0.TGRA compare
match has been set as the TPU0 counter clearing source, and synchronous clearing has been set for the TPU1 and TPU2
counter clearing source.
Three-phase PWM waveforms are output from pins TIOCB0, TIOCB1, and TIOCB2. At this time, synchronous setting
and synchronous clearing by TPU0.TGRA compare match are performed for TPUm.TCNT of TPU0 to TPU2, and the
data set in TPU0.TGRA is used as the PWM cycle.
For details on PWM modes, see
Figure 25.11
Example of Synchronous Operation
Time
0000h
TIOCB0
TIOCB1
TIOCB2
TPU0.TGRA
TPU1.TGRA
TPU0.TGRB
TPU2.TGRA
TPU1.TGRB
TPU2.TGRB
TPU0.TCNT to TPU2.TCNT values
Synchronous clearing by TPU0.TGRA compare match