Datasheet
PIC18F97J94 FAMILY
DS30575A-page 494 2012 Microchip Technology Inc.
By default, the comparator’s output is at logic high
whenever the voltage on V
IN+ is greater than on VIN-.
The polarity of the comparator outputs can be inverted
using the CPOL bit (CMxCON<5>).
The uncertainty of each of the comparators is related to
the input offset voltage and the response time given in
the specifications, as discussed in Section 23.2
“Comparator Operation”.
FIGURE 23-4: COMPARATOR CONFIGURATIONS
Cx
VIN-
V
IN+
Off (Read as ‘0’)
Comparator Off
CON = 0, CREF = x, CCH<1:0> = xx
COE
Cx
VIN-
V
IN+
COE
Comparator CxINB > CxINA Compare
CON = 1, CREF = 0, CCH<1:0> = 00
CxINB
CxINA
Cx
VIN-
V
IN+
COE
Comparator CxINC > CxINA Compare
CON = 1, CREF = 0, CCH<1:0> = 01
CxINC
CxINA
Cx
VIN-
V
IN+
COE
Comparator C2IND/C2INB > CxINA Compare
CON = 1, CREF = 0, CCH<1:0> = 10
C2INB
CxINA
Cx
VIN-
V
IN+
COE
Comparator VBG > CxINA Compare
CON = 1, CREF = 0, CCH<1:0> = 11
VBG
CxINA
Cx
VIN-
V
IN+
COE
Comparator CxINB > CVREF Compare
CON = 1, CREF = 1, CCH<1:0> = 00
CxINB
CV
REF
Cx
VIN-
V
IN+
COE
Comparator CxINC > CVREF Compare
CON = 1, CREF = 1, CCH<1:0> = 01
CxINC
CV
REF
Cx
VIN-
V
IN+
COE
Comparator C2IND/C2INB > CVREF Compare
CON = 1, CREF = 1, CCH<1:0> = 10
CVREF
Cx
VIN-
V
IN+
COE
Pin
Comparator V
BG > CVREF Compare
CON = 1, CREF = 1, CCH<1:0> = 11
VBG
CV
REF
CxOUT
Note 1: VBG is the Internal Reference Voltage (see Table 31-10).
Pin
CxOUT
Pin
CxOUT
Pin
CxOUT
Pin
CxOUT
Pin
CxOUT
Pin
CxOUT
Pin
CxOUT
Pin
CxOUT
C2IND/
C2INB
C2IND/