Microchip Technology MA320002 Data Sheet

Page of 214
© 2011 Microchip Technology Inc.
DS61143H-page 125
PIC32MX3XX/4XX
23.0
COMPARATOR
The PIC32MX3XX/4XX Analog Comparator module
contains one or more comparator(s) 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 23-1:
COMPARATOR BLOCK DIAGRAM
Note 1: This data sheet summarizes the features
of the PIC32MX3XX/4XX family of
devices. It is not intended to be a compre-
hensive reference source. Refer to
Section 19. “Comparator” (DS61110) of
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
 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+
IV
REF
(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 USB variants, when USB is enabled, this pin is controlled by the USB module and therefore 
is not available as a comparator input.
2:
Internally connected.