Datasheet
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
DS70000657H-page 360 2011-2013 Microchip Technology Inc.
25.3 Op Amp/Comparator Registers
REGISTER 25-1: CMSTAT: OP AMP/COMPARATOR STATUS REGISTER
R/W-0 U-0 U-0 U-0 R-0 R-0 R-0 R-0
PSIDL — — —C4EVT
(1)
C3EVT
(1)
C2EVT
(1)
C1EVT
(1)
bit 15 bit 8
U-0 U-0 U-0 U-0 R-0 R-0 R-0 R-0
— — — —C4OUT
(2)
C3OUT
(2)
C2OUT
(2)
C1OUT
(2)
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 PSIDL: Comparator Stop in Idle Mode bit
1 = Discontinues operation of all comparators when device enters Idle mode
0 = Continues operation of all comparators in Idle mode
bit 14-12 Unimplemented: Read as ‘0’
bit 11 C4EVT: Op Amp/Comparator 4 Event Status bit
(1)
1 = Op amp/comparator event occurred
0 = Op amp/comparator event did not occur
bit 10 C3EVT: Comparator 3 Event Status bit
(1)
1 = Comparator event occurred
0 = Comparator event did not occur
bit 9 C2EVT: Comparator 2 Event Status bit
(1)
1 = Comparator event occurred
0 = Comparator event did not occur
bit 8 C1EVT: Comparator 1 Event Status bit
(1)
1 = Comparator event occurred
0 = Comparator event did not occur
bit 7-4 Unimplemented: Read as ‘0’
bit 3 C4OUT: Comparator 4 Output Status bit
(2)
When CPOL = 0:
1 = VIN+ > VIN-
0 = V
IN+ < VIN-
When CPOL =
1:
1 = VIN+ < VIN-
0 = V
IN+ > VIN-
bit 2 C3OUT: Comparator 3 Output Status bit
(2)
When CPOL = 0:
1 = VIN+ > VIN-
0 = V
IN+ < VIN-
When CPOL =
1:
1 = VIN+ < VIN-
0 = V
IN+ > VIN-
Note 1: Reflects the value of the of the CEVT bit in the respective Op Amp/Comparator Control register,
CMxCON<9>.
2: Reflects the value of the COUT bit in the respective Op Amp/Comparator Control register, CMxCON<8>.