
M0A21/M0A23 Series
May 06, 2022
Page
691
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
CMPF0(ADC_ADSR0[1]) and CMPF1(ADC_ADSR0[2]) are the compare flags of compare function.
When the conversion result meets the settings of ADC_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 ADC_ADCR register and CMPIE of ADC_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.19-8 A/D Controller Interrupt