Figure 10-30 shows examples of the output of PWM waveforms with duty cycles of 0% and
100%. If the counter is cleared by compare match with GRB, and GRA is set to a higher value
than GRB, the duty cycle is 0%. If the counter is cleared by compare match with GRA, and GRB
is set to a higher value than GRA, the duty cycle is 100%.
Figure 10-30 PWM Mode (Example 2)
TCNT value
Counter cleared by compare match with GRB
Time
GRB
GRA
TIOCA
a. 0% duty cycle
TCNT value
Counter cleared by compare match with GRA
Time
GRA
GRB
TIOCA
b. 100% duty cycle
Write to GRA
Write to GRA
Write to GRB
Write to GRB
H'0000
H'0000
351
www.DataSheet4U.com