Datasheet

© 2009-2012 Microchip Technology Inc. Preliminary DS70616F-page 435
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
25.0 COMPARATOR MODULE
The Comparator module provides three comparators
that can be configured in different ways. As shown in
Figure 25-1, individual comparator options are speci-
fied by the Comparator module’s Special Function Reg-
ister (SFR) control bits.
These options allow users to:
Select the edge for trigger and interrupt generation
Configure the comparator voltage reference and
band gap
Configure output blanking and masking
The comparator operating mode is determined by the
input selections (i.e., whether the input voltage is
compared to a second input voltage, to an internal
voltage reference.
FIGURE 25-1: COMPARATOR I/O OPERATING MODES
Note 1: This data sheet summarizes the features
of the dsPIC33EPXXX(GP/MC/MU)806/
810/814 and PIC24EPXXX(GP/GU)810/
814 families of devices. It is not intended
to be a comprehensive reference source.
To complement the information in this
data sheet, refer to Section 26. “Op
amp/Comparator” (DS70357) of the
dsPIC33E/PIC24E Family Reference
Manual”, which is available from the
Microchip web site (www.micro-
chip.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.
IVREF
Comparator Voltage
CMPx
(1)
Blanking
Function
Digital
Filter
Output Data/Control
CxOUT
(1)
Reference
CxIN2-
(1)
CxIN1-
(1)
CxIN3-
(1)
(see Figure 25-2)
CVREF
(see Figure 25-3)
(see Figure 25-4)
+
V
IN+
V
IN-
BGSEL<1:0>
VREF+VREF-AVDD AVSS
2.20V
0.20V
0.60V
Note 1: An ‘x’ is a pin, bit, or register name denotes Comparator 1, 2, or 3.
00
01
10
11
00
01
10
11
VREF+
0
1
CREF
CxIN1+
(1)
CVREFIN
CCH<1:0>