
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
The Analog/Digital Converter
User’s Manual
16-21
V2.2, 2004-01
ADC_X1, V2.1
16.5
A/D Converter Interrupt Control
At the end of each conversion, interrupt request flag ADCIR in interrupt control register
ADC_CIC is set. This end-of-conversion interrupt request may cause an interrupt to
vector ADCINT, or it may trigger a PEC data transfer which reads the conversion result
from register ADC_DAT, e.g. to store it into a table in internal RAM for later evaluation.
The interrupt request flag ADEIR in register ADC_EIC will be set either, if a conversion
result overwrites a previous value in register ADC_DAT (error interrupt in standard
mode), or if the result of an injected conversion has been stored into ADC_DAT2 (end-
of-injected-conversion interrupt). This interrupt request may be used to cause an
interrupt to vector ADEINT, or it may trigger a PEC data transfer.
Note: Please refer to the general Interrupt Control Register description for an
explanation of the control fields.
ADC_CIC
ADC Conversion Intr. Ctrl. Reg. SFR (FF98
H
/CC
H
)
Reset Value: - - 00
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
GPX
ADC
IR
ADC
IE
ILVL
GLVL
-
-
-
-
-
-
-
rw
rwh
rw
rw
rw
ADC_EIC
ADC Error Intr. Ctrl. Reg.
SFR (FF9A
H
/CD
H
)
Reset Value: - - 00
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
GPX
ADE
IR
ADE
IE
ILVL
GLVL
-
-
-
-
-
-
-
rw
rwh
rw
rw
rw