English
Language : 

HD6417705 Datasheet, PDF (396/739 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
Examples of PWM Mode Operation: Figure 14.12 shows an example of PWM mode operation.
In this example, TGRB compare match is set as the TCNT clearing source, 0 is set as the initial
output value of the TO pin by TGRA, and 1 is set as the output value by TGRA compare match.
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
TO
Figure 14.12 Example of PWM Mode Operation (1)
Figure 14.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 14.13 Examples of PWM Mode Operation (2)
Rev. 2.00, 09/03, page 350 of 690