
DocID13284 Rev 2
343/564
UM0404
The capture / compare units
The pins CCzIO (which are not selected for double-register compare mode) may be used for
general purpose I/O.
Figure 143. Timing example for double register compare mode
16.6
Capture / compare interrupts
Upon a capture or compare event, the interrupt request flag CCxIR for the respective
capture / compare register CCx is set to ‘1’. 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 (see also section “External
Interrupts”).
Note:
Each of the 32 capture / compare registers (CC0...CC31) has its own bit-addressable
interrupt control register (CC0IC...CC31IC) and its own interrupt vector
(CC0INT...CC31INT). These registers are organized the same way as all other interrupt
control registers. The figure below shows the basic register layout, and the table lists the
associated addresses.
)
SFR/ESFR
Reset Value: - - 00h
Note:
Section 5.1.3: Interrupt control registers on page 100
for an explanation of the
control fields.
x = 23...16, 7...0 y = 0, 1, 7, 8 z = 31...24, 15...8
FFFFh
Compare Value cv2
Compare Value cv1
Reload Value <TyREL>
0000h
1
0
Interrupt
Requests:
Contents of Ty
State of CCxIO:
t
TyIR
CCxIR
CCxIR
TyIR
CCxIR
CCxIR
TyIR
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
-
CCxIR CCxIE
ILVL
GLVL
RW
RW
RW
RW