Datasheet
2009-2016 Microchip Technology Inc. DS60001156J-page 323
PIC32MX5XX/6XX/7XX
26.0 COMPARATOR
The Comparator module contains two comparators that
can be configured in a variety of ways.
Key features of the Comparator module include:
• Selectable inputs available include:
- Analog inputs multiplexed with I/O pins
- On-chip internal absolute voltage reference (IV
REF
)
- Comparator voltage reference (CV
REF
)
• Outputs can be inverted
• Selectable interrupt generation
A block diagram of the Comparator module is
illustrated in Figure 26-1.
FIGURE 26-1: COMPARATOR MODULE BLOCK DIAGRAM
Note: This data sheet summarizes the features
of the PIC32MX5XX/6XX/7XX family of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to Section 19.
“Comparator” (DS60001110) in the
“PIC32 Family Reference Manual”, which
is available from the Microchip web site
(www.microchip.com/PIC32).
C1
CV
REF
(2)
C1IN+
(1)
C1IN+
C1IN-
C1OUT
COUT (CM1CON<8>)
CREF
CCH<1:0>
CPOL
COE
ON
C2IN+
IV
REF
(2)
C1OUT (CMSTAT<0>)
C2
CV
REF
(2)
C2IN+
C2IN+
C2IN-
C2OUT
COUT (CM2CON<8>)
CREF
CPOL
COE
ON
C1IN+
IV
REF
(2)
C2OUT (CMSTAT<1>)
Comparator 2
Comparator 1
CCH<1:0>
Note 1: On devices with a USB module, and when the module is enabled, this pin is controlled by the USB module,
and therefore, is not available as a comparator input.
2: Internally connected. See Section 27.0 “Comparator Voltage Reference (CV
REF
)”.










