Microchip Technology Microstick for the 5V PIC24F K-series DM240013-2 DM240013-2 Data Sheet

Product codes
DM240013-2
Page of 338
 2013 Microchip Technology Inc.
 
DS30003030B-page 235
PIC24FV16KM204 FAMILY
22.0
COMPARATOR MODULE
The comparator module provides three 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 Buffer 1 (BGBUF1) or the com-
parator voltage reference generator.
The comparator outputs may be directly connected to
the CxOUT pins. When the respective COE bit 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 shown in
Diagrams of the possible individual
comparator configurations are shown 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 22-1:
COMPARATOR x 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”
, “Scalable
Comparator Module”
 (DS39734).
C1
V
IN
-
V
IN
+
C
X
INB
C
X
INC
C
X
INA
C
X
IND
CV
REF
BGBUF1
C3
V
IN
-
V
IN
+
COE
C1OUT
Pin
CPOL
CEVT
EVPOL<1:0>
COUT
Input
Select
Logic
CCH<1:0>
CREF<1:0>
COE
C3OUT
Pin
CPOL
CEVT
EVPOL<1:0>
COUT
C2
V
IN
-
V
IN
+
COE
C2OUT
Pin
CPOL
CEVT
COUT
Trigger/Interrupt
Logic
Trigger/Interrupt
Logic
EVPOL<1:0>
Trigger/Interrupt
Logic