Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Data Sheet

Product codes
PIC18F87K22-I/PTRSL
Page of 550
 2009-2011 Microchip Technology Inc.
DS39960D-page 369
PIC18F87K22 FAMILY
REGISTER 24-2:
CMSTAT: COMPARATOR STATUS REGISTER
R-x
R-x
R-x
U-0
U-0
U-0
U-0
U-0
CMP3OUT
CMP2OUT
CMP1OUT
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-5
CMP<3:1>OUT: 
Comparator x Status bits
If CPOL (CMxCON<5>)= 0 (non-inverted polarity):
= Comparator x’s V
IN
+ > V
IN
-
= Comparator x’s V
IN
+ < V
IN
-
If CPOL = 1 (inverted polarity):
= Comparator x’s V
IN
+ < V
IN
-
= Comparator x’s V
IN
+ > V
IN
-
bit 4-0
Unimplemented:
 Read as ‘0’