Renesas RX100 Series User Manual page 396

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
(1) Example of Buffer Operation Setting Procedure
Figure 19.16 shows an example of the buffer operation setting procedure.
Buffer operation
Select TGR function
Set buffer operation
<Buffer operation>
Figure 19.16
Example of Buffer Operation Setting Procedure
(2) Examples of Buffer Operation
(a) When TGR is an Output Compare Register
Figure 19.17 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 section 19.3.5, PWM Modes .
TCNT value
MTU0.TGRB
MTU0.TGRA
0000h
MTU0.TGRC
MTU0.TGRA
MTIOC0A
Figure 19.17
Example of Buffer Operation (1)
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
[1]
[2]
Start count
[3]
0200h
0200h
Transfer
0200h
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
[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.
0450h
0450h
0450h
0520h
Time
0520h
Page 396 of 1041

Advertisement

Table of Contents
loading

Table of Contents