English
Language : 

PIC32MX3XX_1 Datasheet, PDF (125/208 Pages) Microchip Technology – High-Performance, General Purpose and USB 32-bit Flash Microcontrollers
PIC32MX3XX/4XX
23.0 COMPARATOR
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 Sec-
tion 19. “Comparator” (DS61110) of
the “PIC32MX Family Reference Man-
ual”, 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.
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
(IVREF)
- Comparator voltage reference (CVREF)
• Outputs can be inverted
• Selectable interrupt generation
A block diagram of the comparator module is illustrated
in Figure 23-1.
FIGURE 23-1:
C1IN+(1)
CVREF(2)
C1IN-
C1IN+
C2IN+
IVREF(2)
COMPARATOR BLOCK DIAGRAM
Comparator 1
CREF
ON
CPOL
CCH<1:0>
C1
COUT (CM1CON)
C1OUT (CMSTAT)
C1OUT
COE
C2IN+
CVREF(2)
C2IN-
C2IN+
C1IN+
IVREF(2)
CREF
CCH<1:0>
Comparator 2
ON
CPOL
C2
COUT (CM2CON)
C2OUT (CMSTAT)
C2OUT
COE
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.
© 2010 Microchip Technology Inc.
DS61143G-page 125