Datasheet

1996 Microchip Technology Inc.
Preliminary
DS40122B-page 71
PIC14000
FIGURE 9-5: COMPARATOR CONTROL REGISTER
9Dh Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
CMCON
U CMBOUT CMBOE CPOLB U CMAOUT CMAOE CPOLA
Read/Write
R R/W R/W R R/W R/W
POR value 00h
00 0 0 0 0 0 0
Bit Name Function
B7
Unimplemented. Read as ‘0’.
B6 CMBOUT
Comparator B Output
Reading this bit returns the status of the comparator B output. Writes to this bit have no
effect.
B5 CMBOE
Comparator B Output Enable
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.
B4 CPOLB
Comparator B Polarity Bit
1 = Invert the output of comparator B.
0 = Do not invert the output of comparator B.
B3
Unimplemented. Read as ‘0’.
B2 CMAOUT
Comparator A Output
Reading this bit returns the status of the comparator A output. Writes to this bit have no
effect.
B1 CMAOE
Comparator A Output Enable
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.
B0 CPOLA
Comparator A Polarity Bit
1 = Invert the output of comparator A.
0 = Do not invert the output of comparator A.