English
Language : 

PIC24EP256GU810-I Datasheet, PDF (437/622 Pages) Electronic Film Capacitors, Inc. – 16-Bit Microcontrollers and Digital Signal Controllers with High-Speed PWM, USB and Advanced Analog
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
25.0 COMPARATOR MODULE
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.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 three comparators
that can be configured in different ways. As shown in
Figure 25-1, individual comparator options are
specified by the comparator module’s Special Function
Register (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 or to an internal
voltage reference).
FIGURE 25-1:
COMPARATOR I/O OPERATING MODES
CxIN1+(1)
CVREFIN
CxIN2-(1)
CxIN1-(1)
CxIN3-(1)
CREF
0
1
VIN+ +
00
VIN-
CMPx(1)
–
01
10
11
Blanking
Function
(see Figure 25-3)
Digital
Filter
(see Figure 25-4)
CxOUT(1)
Output Data/Control
CCH<1:0>
Comparator Voltage
Reference
(see Figure 25-2)
CVREF
2.20V
0.60V
0.20V
VREF+
00
01 IVREF
10
11
VREF+ VREF- AVDD AVSS
BGSEL<1:0>
Note 1: An ‘x’ is a pin, bit or register name and denotes Comparator 1, 2 or 3.
 2009-2012 Microchip Technology Inc.
DS70616G-page 437