39.2.3 Comparator Output Polarity

Inverting the output of the comparator is functionally equivalent to swapping the comparator inputs. The polarity of the comparator output can be inverted by setting the POL bit. Clearing the POL bit results in a noninverted output. Table 39-1 shows the Output state versus Input conditions, including polarity control.

Table 39-1. Comparator Output State vs. Input Conditions
Input ConditionPOLOUT
CLPxVn > CLPxVp00
CLPxVn < CLPxVp01
CLPxVn > CLPxVp11
CLPxVn < CLPxVp10
Important: The POL bit may only be changed when the comparator is disabled (EN = 0).