Examples of PWM Mode: Figure 9.27 shows examples of operation in PWM mode. In PWM
mode TIOCA becomes an output 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.
TCNT value
GRA
GRB
H'0000
TIOCA
TCNT value
GRB
GRA
H'0000
TIOCA
Counter cleared by compare match A
a. Counter cleared by GRA (TOA = 1)
Counter cleared by compare match B
b. Counter cleared by GRB (TOA = 0)
Figure 9.27 PWM Mode (Example 1)
Section 9 16-Bit Timer
Rev. 4.00 Jan 26, 2006 page 375 of 938
Time
Time
REJ09B0276-0400