Microchip Technology MA330026 Data Sheet

Page of 392
 2011-2014 Microchip Technology Inc.
DS70000652F-page 231
dsPIC33FJ16(GP/MC)101/102 AND dsPIC33FJ32(GP/MC)101/102/104
20.0
COMPARATOR MODULE
The comparator module provides three comparators
that can be configured in different ways. As shown in
, 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
• Select low-power control
• 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 20-1:
COMPARATOR I/O OPERATING MODES   
Note 1: This data sheet summarizes the features
of the dsPIC33FJ16(GP/MC)101/102
and dsPIC33FJ32(GP/MC)101/102/104
device families. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to “Comparator with Blank-
ing”
 (DS70647) in the “dsPIC33/PIC24
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
 in
this data sheet for device-specific register
and bit information.
C3
C1
Blanking
Function
Digital
Filter
C2
CV
REF
(
)
+
V
IN
-
V
IN
+
+
V
IN
-
V
IN
+
+
V
IN
-
V
IN
+
BGSEL<1:0>
AV
DD
AV
SS
IV
REF
(1)
C1INB
C1INC
C1IND
MUX
C1INA
INTREF
MUX
C2INB
C2INC
C2IND
C2INA
INTREF
CV
REFIN
MUX
C3INB
C3INC
C3IND
MUX
C3INA
INTREF
CV
REFIN
CV
REFIN
C1OUT
CPOL
Interrupt
Logic
EVPOL<1:0>
COE
COUT
Blanking
Function
Digital
Filter
(
)
(
C2OUT
CPOL
Interrupt
Logic
EVPOL<1:0>
COE
COUT
Digital
Filter
C3OUT
CPOL
Interrupt
Logic
EVPOL<1:0>
COE
COUT
Note
1:
This reference voltage is generated internally on the device. Refer to 
 
for the specified voltage range.
MUX
MUX
Function
(
Blanking
Reference
Comparator Voltage