Datasheet

372
Counter clearing by another channel
In complementary PWM mode, by setting a mode for synchronization with another channel by
means of the timer synchro register (TSYR), and selecting synchronous clearing with bits
CCLR2–CCLR0 in the timer control register (TCR), it is possible to have TCNT3, TCNT4,
and TCNTS cleared by another channel.
Figure 12.54 illustrates the operation.
Use of this function enables counter clearing and restarting to be performed by means of an
external signal.
TGR3A
TCDR
TDDR
H'0000
Channel 1
input capture A
TCNT1
TCNT3
TCNT4
TCNTS
Synchronous counter clearing by channel 1 input capture A
Figure 12.54 Counter Clearing Synchronized with Another Channel