English
Language : 

XC164-16 Datasheet, PDF (153/417 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC164-16 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Unit 6 (CAPCOM6)
T12 in Center-Aligned mode:
• With the next clock of fT12 the count direction is set to counting up (CDIR = 0) when
the counter reaches 0001H while counting down.
• With the next clock of fT12 the count direction is set to counting down (CDIR = 1) when
the Period-Match is detected while counting up.
• With the next clock of fT12 the counter counts up while CDIR = 0 and it counts down
while CDIR = 1.
Note: Bit CDIR changes with the next timer clock after the one-match or the period-
match. Therefore, the timer continues counting in the previous direction for one
cycle before actually changing its direction (see Figure 18-6).
fT12
T12 Count
Zero
Match
CDIR
CC6x
Down
Up
Value n
Value n+1
Shadow Transfer
Period
Match
<Period Value> + 1
Period
Value
Period
Match
Zero
Up
Down
Value n+1
Value n+2
Shadow Transfer
MCT05510
Figure 18-6 T12 Operation in Center-Aligned Mode
User’s Manual
CAPCOM6_X, V2.0
18-9
V2.1, 2004-03