Datasheet

dsPIC33FJ32GP302/304, dsPIC33FJ64GPX02/X04, AND dsPIC33FJ128GPX02/X04
DS70292G-page 286 © 2007-2012 Microchip Technology Inc.
bit 6 C1OUT: Comparator 1 Output bit
When C1INV =
0:
1 =C1 VIN+ > C1 VIN-
0 =C1 VIN+ < 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 inverted
0 = C2 output not inverted
bit 4 C1INV: Comparator 1 Output Inversion bit
1 = C1 output inverted
0 = C1 output not inverted
bit 3 C2NEG: Comparator 2 Negative Input Configure bit
1 = Input is connected to V
IN+
0 = Input is connected to VIN-
See Figure 23-1 for the comparator modes.
bit 2 C2POS: Comparator 2 Positive Input Configure bit
1 = Input is connected to VIN+
0 = Input is connected to CV
REF
See Figure 23-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 VIN-
See Figure 23-1
for the comparator modes.
bit 0 C1POS: Comparator 1 Positive Input Configure bit
1 = Input is connected to VIN+
0 = Input is connected to CVREF
See Figure 23-1 for the comparator modes.
REGISTER 23-1: CMCON: COMPARATOR CONTROL REGISTER (CONTINUED)
Note 1: If C2OUTEN = 1, the C2OUT peripheral output must be configured to an available RPx pin. See
Section 11.6 “Peripheral Pin Select” for more information.
2: If C1OUTEN = 1, the C1OUT peripheral output must be configured to an available RPx pin. See
Section 11.6 “Peripheral Pin Select” for more information.