36.2 Overview

The Analog Comparators (AC) peripheral supports multiple individual comparators. Each comparator (COMPn) continuously compares the voltage levels on two inputs and provides a digital output based on this comparison. Each comparator can be configured to generate interrupt requests and peripheral events in response to various input change conditions.

The input selection includes analog port pins and internally generated signals. Each comparator’s output state can also be output on a pin for use by external devices.

The dynamic behavior of each comparator can be adjusted using a hysteresis feature.

The individual comparators can be used independently (Normal mode) or paired to form a window comparison (Window mode).