R01UH0822EJ0100 Rev.1.00
Page 406 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
shows an example of operation in PWM mode 2.
In this example, synchronous operation is designated for MTU0 and MTU1, MTU1.TGRB compare match is set as the
TCNT clearing source, and low is set as the initial output value and high as the output value for the other TGR registers
(MTU0.TGRA to MTU0.TGRD and MTU1.TGRA), outputting 5-phase PWM waveforms.
In this case, the value set in MTU1.TGRB is used as the period, and the values set in the other TGRs are used as the duty
ratio.
Figure 19.27
Example of PWM Mode 2 Operation
Time
TCNT value
Counter cleared by MTU1.TGRB compare match
MTU1.TGRB
0000h
MTIOC0A
MTU1.TGRA
MTU0.TGRD
MTU0.TGRC
MTU0.TGRB
MTU0.TGRA
MTIOC0B
MTIOC0C
MTIOC0D
MTIOC1A