English
Language : 

SH7018 Datasheet, PDF (153/431 Pages) Renesas Technology Corp – SuperH™ RISC engine
PWM mode
Select counter clock
(1)
Select counter clear source (2)
Select waveform output level (3)
Set TGR
(4)
Select PWM mode
(5)
Start counting
(6)
PWM mode
Figure 8.23 Procedure for Selecting the PWM Mode
PWM Mode Operation Examples—PWM Mode 1 (Figure 8.24): A TGRA register compare-
match is used as a TCNT counter clear source, the TGRA register initial output value and output
compare output value are both 0, and the TGRB register output compare output value is a 1. In this
example, the value established in the TGRA register becomes the period and the value established
in the TGRB register becomes the duty cycle.
TCNT value
TGRA
Counter cleared by TGRA compare match
TGRB
H'0000
TIOCA
Figure 8.24 PWM Mode Operation Example (Mode 1)
Time
137