An analog comparator is a peripheral that compares two analog voltages and provides a logical output that signals the comparison result. The comparator can provide its output to the device's pin, acting as a replacement for an external analog comparator on the PC board. There are three analog comparators integrated in TM4C123x devices. These analog comparators can be used to signal the application via interrupts or trigger the start of a sample sequence in the ADC. The interrupt generation and ADC triggering logic is separate and independent. This flexibility means, for example, that an interrupt can be generated on a rising edge and the ADC can be triggered on a falling edge.

