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 bit field in the Control A register (INTMODE bits in ACn.CTRLA).

The interrupt is enabled by writing a ‘1’ to the Analog Comparator Interrupt Enable bit in the Interrupt Control register (COMP bit in ACn.INTCTRL).