English
Language : 

SH7020 Datasheet, PDF (275/509 Pages) Renesas Technology Corp – SuperH™ RISC engine
PWM mode
Select counter clock
(1)
Select counter clear source (2)
Set GRA
(3)
Set GRB
(4)
Select PWM mode
(5)
Start counting
(6)
PWM mode
Figure 10.28 Procedure for Selecting the PWM Mode
PWM Mode Operation: Figure 10.29 illustrates PWM mode operations. When the PWM mode
is set, the TIOCA pin becomes the output pin. Output is 1 when the TCNT matches the GRA, and
0 when the TCNT matches the GRB. The TCNT can be cleared by compare match with either
GRA or GRB. This can be used in both free-running and synchronized operation.
Figure 10.30 shows examples of PWM waveforms output with 0% and 100% duty cycles. A 0%
duty waveform can be obtained by setting the counter clear source to GRB and then setting GRA
to a larger value than GRB. A 100% duty waveform can be obtained by setting the counter clear
source to GRA and then setting GRB to a larger value than GRA.
RENESAS 259