PIC14000
FIGURE 9-5: COMPARATOR CONTROL REGISTER
9Dh
CMCON
Read/Write
POR value 00h
Bit 7 Bit 6
U CMBOUT
—
R
0
0
Bit 5
CMBOE
R/W
0
Bit 4
CPOLB
R/W
0
Bit 3
U
—
0
Bit 2
CMAOUT
R
0
Bit 1
CMAOE
R/W
0
Bit 0
CPOLA
R/W
0
Bit
Name
Function
B7
—
Unimplemented. Read as ‘0’.
Comparator B Output
B6
CMBOUT Reading this bit returns the status of the comparator B output. Writes to this bit have no
effect.
Comparator B Output Enable
B5
CMBOE 1 = Comparator B output is available on RD2/CMPB pin and Reference B output is
available on RD3/REFB pin.
0 = RD2/CMPB and RD3/REFB assume normal PORTD function.
Comparator B Polarity Bit
B4
CPOLB
1 = Invert the output of comparator B.
0 = Do not invert the output of comparator B.
B3
—
Unimplemented. Read as ‘0’.
Comparator A Output
B2
CMAOUT Reading this bit returns the status of the comparator A output. Writes to this bit have no
effect.
Comparator A Output Enable
B1
CMAOE 1 = Comparator A output is available on RC1/CMPA pin and Reference A output is
available on RC0/REFA pin.
0 = RC0/REFA and RC1/CMPA assume normal PORTC function.
Comparator A Polarity Bit
B0
CPOLA
1 = Invert the output of comparator A.
0 = Do not invert the output of comparator A.
© 1996 Microchip Technology Inc.
Preliminary
DS40122B-page 71