36.4.3.1 Input Hysteresis

Application software can selectively enable/disable hysteresis for the comparison. Applying hysteresis will help prevent constant toggling of the output, which can be caused by noise when the input signals are close to each other.

Hysteresis is enabled for each comparator individually by writing a ‘1’ to the Hysteresis Enable bit in the Comparator n Comparator Control A register (COMP[n].COMPCTRLA.HYSTEN).