Datasheet

2012 Microchip Technology Inc. DS30575A-page 491
PIC18F97J94 FAMILY
REGISTER 23-2: CMSTAT: COMPARATOR STATUS REGISTER
U-0 U-0 U-0 U-0 U-0 R-x R-x R-x
C3OUT C2OUT C1OUT
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-3 Unimplemented: Read as ‘0
bit 2-0 C3OUT:C1OUT: Comparator x Status bits
If CPOL (CMxCON<5>)= 0 (non-inverted polarity):
1 = Comparator x’s V
IN+ > VIN-
0 = Comparator x’s V
IN+ < VIN-
CPOL = 1 (inverted polarity):
1 = Comparator x’s V
IN+ < VIN-
0 = Comparator x’s V
IN+ > VIN-