Datasheet
© 2009-2011 Microchip Technology Inc. DS61156G-page 159
PIC32MX5XX/6XX/7XX
25.0 COMPARATOR
The Analog Comparator module contains two compar-
ators that can be configured in a variety of ways.
Following are some of the key features of this module:
• 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 25-1.
FIGURE 25-1: COMPARATOR BLOCK DIAGRAM
Note 1: 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”
(DS61110) in the “PIC32
Family Reference Manual”, which is
available from the Microchip web site
(www.microchip.com/PIC32).
2: Some registers and associated bits
described in this section may not be
available on all devices. Refer to
Section 4.0 “Memory Organization” in
this data sheet for device-specific register
and bit information.
C1
CV
REF
(2)
C1IN+
(1)
C1IN+
C1IN-
C1OUT
COUT (CM1CON<8>)
CREF
CCH<1:0>
CPOL
COE
ON
C2IN+
IVREF
(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 26.0 “Comparator Voltage Reference (CV
REF)”.