This Analog Comparator (AC) driver provides an interface for voltage comparison of two input channels.
The following driver variants are available:
AC Synchronous Driver: The driver supports polling for hardware changes, functionality is synchronous to the main clock of the MCU.
AC Asynchronous Driver: The driver supports a callback handler for the IRQ caused by hardware state changes. Functionality is asynchronous to the main clock of the MCU.
An analog comparator compares two analog voltage levels, and outputs a digital value indicating which is the larger. The comparator has normally two analog inputs, V+ and V-, but internal sources in the MCU can also be used as source for one of the inputs. The digital output value is outputted on Vout.