Comparator Negative Input Selection

The NCH bits direct an analog input pin and internal reference voltage or analog ground to the inverting input of the comparator:

NCH Comparator 1 Comparator 2 Comparator 3
111 VSS VSS VSS
110 FVR_Buffer FVR_Buffer FVR_Buffer
101 CxNCH not connected CxNCH not connected CxNCH not connected
100 C1IN4- C2IN4- C3IN4-
011 Reserved C2IN3- Reserved
010 C1IN2- C2IN2- C3IN2-
001 C1IN1- C2IN1- C3IN1-
000 C1IN0- Reserved C3IN0-
Important: To use CxINy- pins as analog input, the appropriate bits must be set in the ANSEL register and the corresponding TRIS bits must also be set to disable the output drivers.