English
Language : 

SH7616 Datasheet, PDF (746/935 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family/SH7600 Series
Section 17 16-Bit Timer Pulse Unit (TPU)
Examples of Buffer Operation
• When TGR is an output compare register
Figure 17.19 shows an operation example in which PWM mode 1 has been designated for
channel 0, and buffer operation has been designated for TGRA and TGRC. The settings used
in this example are TCNT clearing by compare match B, 1 output at compare match A, and 0
output at compare match B.
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, see section 17.4.5, PWM Modes.
TCNT value
TGR0B
TGR0A
H'0000
H'0200
H'0450
H'0520
Time
TGR0C H'0200
Transfer
TGR0A
H'0450
H'0200
H'0520
H'0450
TIOCA
Figure 17.19 Example of Buffer Operation (1)
Rev. 2.00 Mar 09, 2006 page 720 of 906
REJ09B0292-0200