Microchip Technology MA330028 Hoja De Datos
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
DS70000657H-page 362
2011-2013 Microchip Technology Inc.
REGISTER 25-2:
CMxCON: COMPARATOR x CONTROL REGISTER (x = 1, 2 OR 3)
R/W-0
R/W-0
R/W-0
U-0
U-0
R/W-0
R/W-0
R/W-0
CON
COE
(
)
CPOL
—
—
OPMODE
CEVT
COUT
bit 15
bit 8
R/W-0
R/W-0
U-0
R/W-0
U-0
U-0
R/W-0
R/W-0
EVPOL1
EVPOL0
—
CREF
(
)
—
—
CCH1
CCH0
bit 7
bit 0
Legend:
R = Readable bit
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
CON:
Op Amp/Comparator Enable bit
1
= Op amp/comparator is enabled
0
= Op amp/comparator is disabled
bit 14
COE:
Comparator Output Enable bit
1
= Comparator output is present on the CxOUT pin
0
= Comparator output is internal only
bit 13
CPOL:
Comparator Output Polarity Select bit
1
= Comparator output is inverted
0
= Comparator output is not inverted
bit 12-11
Unimplemented:
Read as ‘0’
bit 10
OPMODE:
Op Amp/Comparator Operation Mode Select bit
1
= Circuit operates as an op amp
0
= Circuit operates as a comparator
bit 9
CEVT:
Comparator Event bit
1
= Comparator event according to the EVPOL<1:0> settings occurred; disables future triggers and
interrupts until the bit is cleared
0
= Comparator event did not occur
bit 8
COUT:
Comparator Output bit
When CPOL = 0 (non-inverted polarity):
1
1
= V
IN
+ > V
IN
-
0
= V
IN
+ < V
IN
-
When CPOL = 1 (inverted polarity):
1
1
= V
IN
+ < V
IN
-
0
= V
IN
+ > V
IN
-
Note 1:
Inputs that are selected and not available will be tied to V
SS
. See the
section for available
inputs for each package.
2:
This output is not available when OPMODE (CMxCON<10>) = 1.