33.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 CxPOL bit. Clearing the CxPOL bit results in a noninverted output.

Table 33-1 shows the output state versus input conditions, including polarity control.

Table 33-1. Comparator Output State vs. Input Conditions
Input ConditionCxPOLCxOUT
CxVn > CxVp00
CxVn < CxVp01
CxVn > CxVp11
CxVn < CxVp10