
M0A21/M0A23 Series
May 06, 2022
Page
721
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
6.21 Analog Comparator Controller (ACMP)
6.21.1 Overview
The chip provides two comparators. The comparator output is logic 1 when positive input is greater than
negative input; otherwise, the output is 0. Each comparator can be configured to generate an interrupt
when the comparator output value changes.
6.21.2 Features
Analog input voltage range: 0 ~ AV
DD
(voltage of V
DD
pin)
Up to two rail-to-rail analog comparators
Supports hysteresis function
Support programmable hysteresis window: 0mV and 30mV
Supports wake-up function
Selectable input sources of positive input and negative input
ACMP0 supports:
–
3 multiplexed I/O pins at positive sources:
ACMP0_P0, Comparator Reference Voltage (CRV), and DAC0 output
–
5 negative sources:
ACMP0_N0, ACMP0_N1, ACMP0_N2, ACMP0_N3
Comparator Reference Voltage (CRV)
ACMP1 supports
–
3 multiplexed I/O pins at positive sources:
ACMP1_P0, Comparator Reference Voltage (CRV), and DAC0 output
–
5 negative sources:
ACMP1_N0, ACMP1_N1, ACMP1_N2, ACMP1_N3
Comparator Reference Voltage (CRV)
Shares one ACMP interrupt vector for all comparators
Interrupts generated when compare results change (Interrupt event condition is
programmable)
Supports triggers for break events and cycle-by-cycle control for PWM
Supports window compare mode and window latch mode
6.21.3 Block Diagram