Datasheet

2010 Microchip Technology Inc. Preliminary DS39974A-page 381
PIC18F47J13 FAMILY
REGISTER 23-2: CMSTAT: COMPARATOR STATUS REGISTER (ACCESS F70h)
U-0 U-0 U-0 U-0 U-0 R-1 R-1 R-1
COUT3 COUT2 COUT1
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 as0
bit 2-0 COUT<3:1>: Comparator x Status bits
(For example, COUT3 gives the status for Comparator 3.)
If CPOL (CMxCON<5>) =
0 (non-inverted polarity):
1 = Comparator VIN+ > VIN-
0 = Comparator V
IN+ < VIN-
If CPOL = 1 (inverted polarity):
1 = Comparator VIN+ < VIN-
0 = Comparator V
IN+ > VIN-