
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Units
User’s Manual
17-17
V2.2, 2004-01
CC12_X1, V2.1
Figure 17-6
Examples for Compare Modes 0 and 1
In Case 3, a new compare value, higher than the current timer contents, causes a new
match within the current timer period. The compare register is reloaded with FFFA
H
after
the first match (at FFFC
H
). However, the timer has already passed this value. Thus, it will
take until the timer reaches FFFA
H
in the following timer period to cause the desired
compare match. Reloading register CCy now with a value higher than the current timer
contents will cause the next match within this period.
In Case 4, the compare values are equal to the timer reload value or to the maximum
count value, FFFF
H
.
MCT05422
CCxIO
Case 1
CCxIO
Case 2
CC0 = FFFF
CCxIO
Case 3
CCxIO
Case 4
FFFC
FFFD
FFFE
FFFF
FFF9
FFFA
FFFB
FFFC
FFFD
FFFE
FFFF
FFF9
FFFA
FFFB
Timer Contents
CC0 = FFFA
CC0 = FFFD
CC0 = FFFC
CC0 = FFF9
CC0 =
FFFA
CC0 =
FFFC
CC0 =
FFFF
CC0 =
FFFB
Symbolizes activation of the interrupt request line CCyIRQ
Reload Value = FFF9