English
Language : 

HD6417034 Datasheet, PDF (301/691 Pages) Renesas Technology Corp – SuperH RISC ENGINE SH7032 AND SH7034
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 PWM Mode
PWM Mode Operation: Figure 10.29 illustrates PWM mode operation. When PWM mode is set,
the TIOCA pin becomes the output pin. Output is 1 when TCNT matches GRA, and 0 when
TCNT matches GRB. 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.
265