233
Example of Synchronization: Figure 8-27 shows an example of synchronization. Channels 0, 1,
and 2 are synchronized, and are set to operate in PWM mode. Channel 0 is set for counter clearing
by compare match with GRB0. Channels 1 and 2 are set for synchronous counter clearing. The
timer counters in channels 0, 1, and 2 are synchronously preset, and are synchronously cleared by
compare match with GRB0. A three-phase PWM waveform is output from pins TIOCA
0
, TIOCA
1
,
and TIOCA
2
. For further information on PWM mode, see section 8.4.4, PWM Mode.
TIOCA
2
Time
TIOCA
1
TIOCA
0
GRA2
H'0000
GRA1
GRB2
GRA0
GRB1
GRB0
Value of TCNT0 to TCNT2
Cleared by compare match with GRB0
Figure 8-27 Synchronization (Example)