Microchip Technology MA240017 Data Sheet

Page of 278
 2008-2011 Microchip Technology Inc.
DS39927C-page 183
PIC24F16KA102 FAMILY
23.0
COMPARATOR MODULE
The comparator module provides two dual input
comparators. The inputs to the comparator can be
configured to use any one of four external analog
inputs, as well as a voltage reference input from either
the internal band gap reference, divided by 2 (V
BG
/2),
or the comparator voltage reference generator.
The comparator outputs may be directly connected to
the CxOUT pins. When the respective COE equals ‘1’,
the I/O pad logic makes the unsynchronized output of
the comparator available on the pin. 
A simplified block diagram of the module is displayed
in 
. Diagrams of the possible individual
comparator configurations are displayed in
Each comparator has its own control register,
CMxCON (
), for enabling and configuring
its operation. The output and event status of all three
comparators is provided in the CMSTAT register
(
FIGURE 23-1:
COMPARATOR MODULE BLOCK DIAGRAM
Note:
This data sheet summarizes the features
of this group of PIC24F devices. It is not
intended to be a comprehensive refer-
ence source. For more information on the
Comparator module, refer to the “PIC24F
Family Reference Manual”
,  Section 46.
“Scalable Comparator Module”
(DS39734).
C1
V
IN
-
V
IN
+
C
X
INB
C
X
INC
C
X
INA
C
X
IND
CV
REF
V
BG
/2
C2
V
IN
-
V
IN
+
COE
C1OUT
Pin
CPOL
Trigger/Interrupt
Logic
CEVT
EVPOL<1:0>
COUT
Input
Select
Logic
CCH<1:0>
CREF
COE
C2OUT
Pin
CPOL
Trigger/Interrupt
Logic
CEVT
EVPOL<1:0>
COUT