Microchip Technology MA330031-2 Data Sheet

Page of 530
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
)
C3EVT
(
)
C2EVT
(
)
C1EVT
(
)
bit 15
bit 8
U-0
U-0
U-0
U-0
R-0
R-0
R-0
R-0
C4OUT
(
)
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
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
 = Op amp/comparator event occurred
0
 = Op amp/comparator event did not occur
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-4
Unimplemented:
 Read as ‘0’
bit 3
C4OUT:
 Comparator 4 Output Status bit
(
When CPOL = 0:
1
 = V
IN
+ > V
IN
-
0
 = V
IN
+ < V
IN
-
When CPOL = 1:
1
 = V
IN
+ < V
IN
-
0
 = V
IN
+ > V
IN
-
bit 2
C3OUT:
 Comparator 3 Output Status bit
(
When CPOL = 0:
1
 = V
IN
+ > V
IN
-
0
 = V
IN
+ < V
IN
-
When CPOL = 1:
1
 = V
IN
+ < V
IN
-
0
 = V
IN
+ > V
IN
-
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>.