
M0A21/M0A23 Series
May 06, 2022
Page
730
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
1 = Wake-up function Enabled.
[15:13]
FILTSEL
Comparator Output Filter Count Selection
000 = Filter function is Disabled.
001 = ACMP0 output is sampled 1 consecutive PCLK.
010 = ACMP0 output is sampled 2 consecutive PCLKs.
011 = ACMP0 output is sampled 4 consecutive PCLKs.
100 = ACMP0 output is sampled 8 consecutive PCLKs.
101 = ACMP0 output is sampled 16 consecutive PCLKs.
110 = ACMP0 output is sampled 32 consecutive PCLKs.
111 = ACMP0 output is sampled 64 consecutive PCLKs.
[12]
OUTSEL
Comparator Output Select
0 = Comparator 0 output to ACMP0_O pin is unfiltered comparator output.
1 = Comparator 0 output to ACMP0_O pin is from filter output.
[11]
Reserved
Reserved.
[10:8]
POSSEL
Comparator Positive Input Selection
000 = All positive input disabled
001 = Input from ACMP0_P0.
010 = Comparator Reference Voltage (CRV)
011 = DAC0 output
Others = Reserved
[7]
Reserved
Reserved.
[6:4]
NEGSEL
Comparator Negative Input Selection
000 = All negative input disbaled
001 = ACMP0_N0
010 = ACMP0_N1
011 = ACMP0_N2
100 = ACMP0_N3
101 = Comparator Reference Voltage (CRV)
Others = Reserved.
[3]
ACMPOINV
Comparator Output Inverse
0 = Comparator 0 output inverse Disabled.
1 = Comparator 0 output inverse Enabled.
[2]
Reserved
Reserved.
[1]
ACMPIE
Comparator Interrupt Enable Bit
0 = Comparator 0 interrupt Disabled.
1 = Comparator 0 interrupt Enabled. If WKEN (ACMP_CTL0[16]) is set to 1, the wake-up interrupt function
will be enabled as well.
[0]
ACMPEN
Comparator Enable Bit
0 = Comparator 0 Disabled.
1 = Comparator 0 Enabled.