English
Language : 

SH7011 Datasheet, PDF (140/292 Pages) Renesas Technology Corp – CMOS single-chip microprocessors
PWM Mode Operation Examples—PWM Mode 2 (Figure 8.25): Channels 0 and 1 are set for
synchronous operation, TGR1B register compare-match is used as a TCNT counter clear source,
the other TGR register initial output value is 0 and output compare output value is 1, and a 3-phase
PWM waveform is output. In this example, the value established in the TGR1B register becomes
the period and the value established in the other TGR register becomes the duty cycle.
TCNTvalue
TGR1B
TGR1A
TGR0C
TGR0A
H'0000
TIOC0A
Counter cleared on TGR1B compare match
Time
TIOC0C
TIOC1A
Figure 8.25 PWM Mode Operation Example (Mode 2)
0% Duty Cycle: Figure 8.26 shows an example of a 0% duty cycle PWM waveform output in
PWM mode.
TCNT value
TGRB rewrite
TGRA
TICCA
TGRB
TGRB rewrite
0% duty cycle
TGRB rewrite
Time
Figure 8.26 PWM Mode Operation Example (0% Duty Cycle)
131