43.6.10 Inputs Swapping
The Swap bit in the Comparator Control registers (COMPCTRLn.SWAP) controls switching of the input signals to a comparator's positive and negative terminals. When the comparator terminals are swapped, the output signal from the comparator is also inverted, as shown in the figure below. As part of the input selection, COMPCTRLn.SWAP can be changed only while the comparator is disabled.