Table 8.7 (c) 16-bit timer Operating Modes (Channel 2)
TSNC
Synchro-
Operating Mode
nization
Synchronous preset
SYNC2 = 1
PWM mode
Output compare A
Output compare B
Input capture A
Input capture B
Counter By compare
clearing match/input
capture A
By compare
match/input
capture B
Syn-
SYNC2 = 1
chronous
clear
Phase counting
mode
Legend:
Setting available (valid). — Setting does not affect this mode.
Note: * The input capture function cannot be used in PWM mode. If compare match A and compare match B occur
simultaneously, the compare match signal is inhibited.
Register Settings
TMDR
MDF
FDIR PWM
—
—
PWM2 = 1
—
PWM2 = 0
—
—
PWM2 = 0
—
PWM2 = 0
—
—
—
MDF = 1
TIOR2
IOA
IOB
*
—
IOA2 = 0
Other bits
unrestricted
IOB2 = 0
Other bits
unrestricted
IOA2 = 1
Other bits
unrestricted
IOB2 = 1
Other bits
unrestricted
16TCR2
Clear
Clock
Select
Select
CCLR1 = 0
CCLR0 = 1
CCLR1 = 1
CCLR0 = 0
CCLR1 = 1
CCLR0 = 1
—
283