Examples of PWM Mode: Figure 8-29 shows examples of operation in PWM mode. The PWM
waveform is output from the TIOCA pin. The output goes to 1 at compare match with GRA, and
to 0 at compare match with GRB.
In the examples shown, TCNT is cleared by compare match with GRA or GRB. Synchronized
operation and free-running counting are also possible.
Downloaded from
Elcodis.com
electronic components distributor
TCNT value
GRA
GRB
H'0000
TIOCA
a. Counter cleared by GRA
TCNT value
GRB
GRA
H'0000
TIOCA
b. Counter cleared by GRB
Figure 8-29 PWM Mode (Example 1)
Counter cleared by compare match with GRA
Counter cleared by compare match with GRB
224
Time
Time