Comparator Output

The output of the comparator can be monitored in two different registers. Each output can be read individually by reading the OUT bit. Outputs of all the comparators can be collectively accessed by reading the CMOUT register.

The comparator output can also be routed to an external pin through the RxyPPS register. Refer to the “PPS - Peripheral Pin Select Module” chapter for more details. The corresponding TRIS bit must be clear to enable the pin as an output.

Important: The internal output of the comparator is latched with each instruction cycle. Unless otherwise specified, external outputs are not latched.