English
Language : 

SH7720 Datasheet, PDF (600/1524 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Section 15 16-Bit Timer Pulse Unit (TPU)
(2) Examples of PWM Mode Operation
Figure 15.12 shows an example of PWM mode operation.
In this example, TGRB compare match is set as the TCNT clearing source, 0 is set for the TGRA
initial output value and output value, and 1 is set as the TGRA output value.
In this case, the value set in TGRB is used as the period, and the value set in TGRA as the duty.
TCNT value
TGRB
Counter cleared by
TGRB compare match
TGRA
H'0000
Time
TPU_TO pin
Figure 15.12 Example of PWM Mode Operation (1)
Figure 15.13 shows examples of PWM waveform output with 0% duty and 100% duty in PWM
mode.
TCNT
2
0
1
2
0
TGRA=0
TGRA=1
TGRA=2
TGRA=3
↑ Rewrite timing for TGRA
Period: TGRB=2
Figure 15.13 Examples of PWM Mode Operation (2)
Rev. 3.00 Jan. 18, 2008 Page 538 of 1458
REJ09B0033-0300