28.3.2.4 Signal Compare and Interrupt
After the successful initialization of the AC and after configuring the desired properties, the result of the comparison is continuously updated and is available for the application software, for the Event System, or on a pin.
The AC can generate a comparator interrupt, COMP, and can request this interrupt on either rising, falling, or both edges of the toggling comparator output. This is configured by writing to the Interrupt Modes (INTMODE) bit field in the Control A (ACn.CTRLA) register.
The interrupt is enabled by writing a ‘1
’ to the Analog Comparator
Interrupt Enable (COMP) bit in the Interrupt Control (ACn.INTCTRL) register.