Datasheet
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
DS70616F-page 438 Preliminary © 2009-2012 Microchip Technology Inc.
25.2 Comparator Registers
REGISTER 25-1: CMSTAT: COMPARATOR STATUS REGISTER
R/W-0 U-0 U-0 U-0 U-0 R-0 R-0 R-0
CMSIDL
— — — — C3EVT C2EVT C1EVT
bit 15 bit 8
U-0 U-0 U-0 U-0 U-0 R-0 R-0 R-0
— — — — — 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 15 CMSIDL: Stop in Idle Mode bit
1 = Discontinue operation of all comparators when device enters Idle mode
0 = Continue operation of all comparators in Idle mode
bit 14-11 Unimplemented: Read as ‘0’
bit 10 C3EVT: Comparator 3 Event Status bit
1 = Comparator event occurred
0 = Comparator event did not occur
bit 9 C2EVT: Comparator 2 Event Status bit
1 = Comparator event occurred
0 = Comparator event did not occur
bit 8 C1EVT: Comparator 1 Event Status bit
1 = Comparator event occurred
0 = Comparator event did not occur
bit 7-3 Unimplemented: Read as ‘0’
bit 2 C3OUT: Comparator 3 Output Status bit
When CPOL =
0:
1 = VIN+ > VIN-
0 = V
IN+ < VIN-
When CPOL =
1:
1 = VIN+ < VIN-
0 = V
IN+ > VIN-
bit 1 C2OUT: Comparator 2 Output Status bit
When CPOL =
0:
1 = VIN+ > VIN-
0 = VIN+ < VIN-
When CPOL =
1:
1 = VIN+ < VIN-
0 = V
IN+ > VIN-
bit 0 C1OUT: Comparator 1 Output Status bit
When CPOL =
0:
1 = VIN+ > VIN-
0 = V
IN+ < VIN-
When CPOL =
1:
1 = VIN+ < VIN-
0 = V
IN+ > VIN-