English
Language : 

PIC24HJ32GP302_11 Datasheet, PDF (231/368 Pages) Microchip Technology – High-Performance, 16-bit Microcontrollers
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
21.0 COMPARATOR MODULE
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
website (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.
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 (CVREF).
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”.
FIGURE 21-1:
COMPARATOR I/O OPERATING MODES
C1IN+
C1IN-
C1IN+
CVREF
C1NEG
C1POS
VIN-
VIN+
C1EN
C1
C1INV
CMCON<6>
C1OUT(1)
C1OUTEN
C2IN+
C2IN-
C2IN+
CVREF
C2NEG
C2POS
VIN-
VIN+
C2EN
C2
C2INV
CMCON<7>
C2OUT(1)
C2OUTEN
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.
© 2011 Microchip Technology Inc.
DS70293E-page 231