R01UH0822EJ0100 Rev.1.00
Page 398 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(3) Selecting Timing for Transfer from Buffer Registers to Timer General Registers in Buffer
Operation
The timing for transfer from buffer registers to timer general registers can be selected in PWM mode 1 or 2 for MTU0 or
in PWM mode 1 for MTU3 and MTU4 by setting the buffer operation transfer mode registers (MTUn.TBTM (n = 0, 3,
4)). Either compare match (value after reset) or TCNT clearing can be selected for the transfer timing. TCNT clearing as
transfer timing is one of the following cases.
When TCNT overflows (FFFFh to 0000h)
When 0000h is written to TCNT during counting
When TCNT becomes 0000h under the condition specified in the CCLR[2:0] bits in TCR
Note:
TBTM must be modified only while TCNT stops.
shows an operation example in which PWM mode 1 is designated for MTU0 and buffer operation is
designated for MTU0.TGRA and MTU0.TGRC. The settings used in this example are MTU0.TCNT clearing by
compare match B, high output at compare match A, and low output at compare match B. The TTSA bit in MTU0.TBTM
is set to 1.
Figure 19.19
Example of Buffer Operation When MTU0.TCNT Clearing is Selected for MTU0.TGRC to
MTU0.TGRA Transfer Timing
Time
0520h
0520h
0450h
0450h
0200h
0520h
0450h
0200h
0200h
Transfer
MTU0.TCNT value
0000h
MTU0.TGRA
MTIOC0A
MTU0.TGRC
MTU0.TGRB
MTU0.TGRA