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