
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Units
User’s Manual
17-34
V2.2, 2004-01
CC12_X1, V2.1
17.9
CAPCOM Interrupts
Upon a capture or compare event, the interrupt request flag CCxIR for the respective
capture/compare register CCx is automatically set. This flag can be used to generate an
interrupt or trigger a PEC service request when enabled by the interrupt enable bit
CCxIE. Capture interrupts can be regarded as external interrupt requests with the
additional feature of recording the time at which the triggering event occurred.
Each of the capture/compare registers has its own bitaddressable interrupt control
register and its own interrupt vector allocated. These registers are organized in the same
way as all other interrupt control registers. The basic register layout is shown below,
lists the associated addresses.
Note: Please refer to the general Interrupt Control Register description for an
explanation of the control fields.
CCx_CCyIC
CAPCOM Intr. Ctrl. Reg.
(E)SFR (
Reset Value: - - 00
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
GPX
CCy
IR
CCy
IE
ILVL
GLVL
-
-
-
-
-
-
-
rw
rwh
rw
rw
rw