
NUC126
Aug. 08, 2018
Page
271
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
6.6.5.12 Interrupt Sources
There are three interrupt sources of ADC interrupt. When an ADC operation mode finishes its
conversion, the A/D conversion end flag, ADF(ADSR0[0]), will be set to 1. The CMPF0(ADSR0[1]) and
CMPF1(ADSR0[2]) are the compare flags of compare function. When the conversion result meets the
settings of ADCMPR0/1 registers, the corresponding flag will be set to 1. When one of the flags, ADF,
CMPF0 and CMPF1, is set to 1 and the corresponding interrupt enable bit, ADIE of ADCR register and
CMPIE of ADCMPR0/1 registers, is set to 1, the ADC interrupt will be asserted. Software can clear
these flags to revoke the interrupt request.
ADF (ADSR0[0])
ADIE (ADCR[1])
CMPF1 (ADSR0[2])
CMPIE (ADCMPR1[1])
ADC_INT
CMPF0 (ADSR0[1])
CMPIE (ADCMPR0[1])
Figure 6.6-8 A/D Controller Interrupt