
M0A21/M0A23 Series
May 06, 2022
Page
701
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
01100 = Channel 12 conversion result is selected to be compared.
01101 = Channel 13 conversion result is selected to be compared.
01110 = Channel 14 conversion result is selected to be compared.
01111 = Channel 15 conversion result is selected to be compared.
10000 = Channel 16 conversion result is selected to be compared.
11010 = Internal reference voltage conversion result is selected to be compared
11011 = DAC0 output conversion result is selected to be compared
11101 = Band-gap voltage conversion result is selected to be compared.
11110 = Temperature sensor conversion result is selected to be compared
Others = Reserved
[2]
CMPCOND
Compare Condition
0 = Set the compare condition as that when a 12-bit A/D conversion result is less than the 12-bit CMPD
bits, the internal match counter will increase one.
1 = Set the compare condition as that when a 12-bit A/D conversion result is greater than or equal to the
12-bit CMPD bits, the internal match counter will increase one.
Note:
When the internal counter reaches to (CMP1), the CMPFx bit will be set.
[1]
CMPIE
Compare Interrupt Enable Control
If the compare function is enabled and the compare condition matches the setting of CMPCOND and
CMPMATCNT, CMPFx bit will be asserted, in the meanwhile, if CMPIE bit is set to 1, a compare interrupt
request is generated.
0 = Compare function interrupt Disabled.
1 = Compare function interrupt Enabled.
[0]
CMPEN
Compare Enable Control
Set this bit to 1 to enable ADC controller to compare CMPD (ADCMPRx[27:16]) with specified channel
conversion result when converted data is loaded into ADDR register.
0 = Compare function Disabled.
1 = Compare function Enabled.