The analog comparator is used to compare the voltage of two analog inputs and has a digital output to indicate the higher input voltage. The positive input is always from the external pin. The negative input can be either one of the selectable internal references or from an external pin. The analog comparator features low-power operation. The comparison result is used as an interrupt source to wake up the system from SLEEP mode.