Datasheet

© 2007-2012 Microchip Technology Inc. DS70293G-page 241
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
21.0 COMPARATOR MODULE
The Comparator module provides a set of dual input
comparators. The inputs to the comparator can be
configured to use any one of the four pin inputs
(C1IN+, C1IN-, C2IN+ and C2IN-) as well as the
Comparator Voltage Reference Input (CV
REF).
FIGURE 21-1: COMPARATOR I/O OPERATING MODES
Note 1: This data sheet summarizes the features
of the PIC24HJ32GP302/304,
PIC24HJ64GPX02/X04 and
PIC24HJ128GPX02/X04 families of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to Section 34. “Compara-
tor” (DS70212) of the “dsPIC33F/
PIC24H Family Reference Manual”,
which is available from the Microchip web
site (www.microchip.com).
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.
Note: This peripheral contains output func-
tions that may need to be configured by
the peripheral pin select feature. For
more information, see Section 11.6
“Peripheral Pin Select”.
C2
C2IN-
V
IN-
V
IN+
C2IN+
CVREF
C2IN+
C2OUT
(1)
CMCON<7>
C1
C1IN-
V
IN-
V
IN+
C1IN+
CVREF
C1IN+
C1OUT
(1)
CMCON<6>
C1NEG
C1POS
C2NEG
C2POS
C1INV
C2INV
C1OUTEN
C2OUTEN
C1EN
C2EN
Note 1: This peripheral’s outputs must be assigned to an available RPn pin before use. Refer to Section 11.6 “Peripheral
Pin Select” for more information.