R01UH0822EJ0100 Rev.1.00
Page 396 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(1) Example of Buffer Operation Setting Procedure
shows an example of the buffer operation setting procedure.
Figure 19.16
Example of Buffer Operation Setting Procedure
(2) Examples of Buffer Operation
(a) When TGR is an Output Compare Register
shows an operation example in which PWM mode 1 has been designated for MTU0, and buffer operation
has been designated for TGRA and TGRC. The settings used in this example are TCNT clearing by compare match B,
high output at compare match A, and low output at compare match B. In this example, the TTSA bit in TBTM is set to 0.
As buffer operation has been set, when compare match A occurs, the output changes and the value in buffer register
TGRC is simultaneously transferred to timer general register TGRA. This operation is repeated each time compare
match A occurs.
For details of PWM modes, refer to
Figure 19.17
Example of Buffer Operation (1)
[1]
[2]
[3]
Buffer operation
Select TGR function
Set buffer operation
Start count
<Buffer operation>
[1] Designate TGR as an input capture register or
output compare register by means of TIOR.
[2] Designate TGR for buffer operation with bits BFA
and BFB in TMDR1.
[3] Set the CSTn bit in TSTRA to 1 to start the count
operation.
TCNT value
Time
0200h
0520h
0200h
0450h
0520h
0450h
0450h
0200h
Transfer
MTU0.TGRB
0000h
MTU0.TGRC
MTU0.TGRA
MTIOC0A
MTU0.TGRA