Datasheet

© 2010 Microchip Technology Inc. DS61156D-page 149
PIC32MX5XX/6XX/7XX
25.0 COMPARATOR
The PIC32MX5XX/6XX/7XX analog comparator
module contains two comparators 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
“PIC32MX 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 avail-
able 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)
CREF
CCH<1:0>
CPOL
COE
ON
C2IN+
IVREF
(2)
C1OUT (CMSTAT)
C2
CV
REF
(2)
C2IN+
C2IN+
C2IN-
C2OUT
COUT (CM2CON)
CREF
CPOL
COE
ON
C1IN+
IV
REF
(2)
C2OUT (CMSTAT)
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.