Datasheet

344
Phase Count Mode 2: Figure 12.31 shows an example of phase counting mode 2 operation. Table
12.10 lists the up counting and down counting conditions for the TCNT.
TCLKA (Channel 1)
TCLKC (Channel 2)
TCLKB (Channel 1)
TCLKD (Channel 2)
TCNT value
Increment Decrement
Time
Figure 12.31 Phase Counting Mode 2 Operation
Table 12.10 Phase Count Mode 2 Up/Down Counting Conditions
TCLKA (Channel 1)
TCLKC (Channel 2)
TCLKB (Channel 1)
TCLKD (Channel 2) Operation
1 (high level) Rising edge Does not count (don’t care)
0 (low level) Falling edge Does not count (don’t care)
Rising edge 0 (low level) Does not count (don’t care)
Falling edge 1 (high level) Increment
1 (high level) Falling edge Does not count (don’t care)
0 (low level) Rising edge Does not count (don’t care)
Rising edge 1 (high level) Does not count (don’t care)
Falling edge 0 (low level) Decrement