English
Language : 

SH7763 Datasheet, PDF (805/2026 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC Engine Family SH-4A Series
Section 20 16-Bit Timer Pulse Unit (TPU)
(2) Examples of PWM Mode Operation
Figure 20.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 20.12 Example of PWM Mode Operation (1)
Figure 20.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 20.13 Examples of PWM Mode Operation (2)
Rev. 1.00 Oct. 01, 2007 Page 739 of 1956
REJ09B0256-0100