
Mini57
Apr. 06, 2017
Page 454 of 475
Rev.1.00
MINI5
7
S
E
RI
E
S
TECH
NIC
A
L R
E
F
E
RE
N
CE
MA
N
UA
L
6.17.5 Functional Description
6.17.5.1 Interrupt Sources
The output of comparators are sampled by PCLK and reflected at ACMPOx(ACMP_STATUS[3]
and ACMP_STATUS[2]). If ACMPIE(ACMP_CTLx[1]) is set to 1, the comparator interrupt will be
enabled. As the output state of comparator is changed, the comparator interrupt will be asserted
and the corresponding flag, ACMPFx(ACMP_STATUS[1] and ACMP_STATUS[0]), will be set.
Software can clear the flag to 0 by writing 1 to it.
ACMPF0
ACMPIE
(ACMP0_CTL[1])
ACMPF1
ACMPIE
(ACMP1_CTL[1])
DLYTRGF0
DLYTRGIE
(ACMP0_CTL[13])
ACMP_INT
DLYTRGF1
DLYTRGIE
(ACMP1_CTL[13])
Figure 6.17-2 Analog Comparator Controller Interrupt Sources
6.17.5.2 Hysteresis Function
The analog comparator provides hysteresis function to make the comparator output transition
more stable. If comparator output is 0, it will not change to 1 until the positive input voltage
exceeds the negative input voltage by a positive hysteresis voltage. Similarly, if comparator output
is 1, it will not change to 0 until the positive input voltage drops the negative input voltage by a
negative hysteresis voltage.
Positive hysteresis voltage
Negative hysteresis voltage
Positive input voltage
Negative input voltage
Comparator output
Figure 6.17-3 Comparator Hysteresis Function