Datasheet
2010-2013 Microchip Technology Inc. DS39881E-page 205
PIC24FJ64GA004 FAMILY
bit 6 C1OUT: Comparator 1 Output bit
When C1INV = 0:
1 =C1 VIN+ > C1 VIN-
0 =C1 V
IN+ < C1 VIN-
When C1INV =
1:
0 =C1 VIN+ > C1 VIN-
1 =C1 V
IN+ < C1 VIN-
bit 5 C2INV: Comparator 2 Output Inversion bit
1 = C2 output is inverted
0 = C2 output is not inverted
bit 4 C1INV: Comparator 1 Output Inversion bit
1 = C1 output is inverted
0 = C1 output is not inverted
bit 3 C2NEG: Comparator 2 Negative Input Configure bit
1 = Input is connected to VIN+
0 = Input is connected to V
IN-
See Figure 22-1 for the Comparator modes.
bit 2 C2POS: Comparator 2 Positive Input Configure bit
1 = Input is connected to V
IN+
0 = Input is connected to CV
REF
See Figure 22-1 for the Comparator modes.
bit 1 C1NEG: Comparator 1 Negative Input Configure bit
1 = Input is connected to VIN+
0 = Input is connected to V
IN-
See Figure 22-1 for the Comparator modes.
bit 0 C1POS: Comparator 1 Positive Input Configure bit
1 = Input is connected to V
IN+
0 = Input is connected to CV
REF
See Figure 22-1 for the Comparator modes.
REGISTER 22-1: CMCON: COMPARATOR CONTROL REGISTER (CONTINUED)
Note 1: If C2OUTEN = 1, the C2OUT peripheral output must be configured to an available RPn pin. See
Section 10.4 “Peripheral Pin Select (PPS)” for more information.
2: If C1OUTEN = 1, the C1OUT peripheral output must be configured to an available RPn pin. See
Section 10.4 “Peripheral Pin Select (PPS)” for more information.