English
Language : 

PIC24HJ32GP302_11 Datasheet, PDF (232/368 Pages) Microchip Technology – High-Performance, 16-bit Microcontrollers
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
REGISTER 21-1: CMCON: COMPARATOR CONTROL REGISTER
R/W-0
CMIDL
bit 15
U-0
R/W-0
R/W-0
R/W-0
R/W-0
—
C2EVT
C1EVT
C2EN
C1EN
R/W-0
R/W-0
C2OUTEN(1) C1OUTEN(2)
bit 8
R-0
C2OUT
bit 7
R-0
C1OUT
R/W-0
C2INV
R/W-0
C1INV
R/W-0
C2NEG
R/W-0
C2POS
R/W-0
C1NEG
R/W-0
C1POS
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
CMIDL: Stop in Idle Mode
1 = When device enters Idle mode, module does not generate interrupts. Module is still enabled
0 = Continue normal module operation in Idle mode
Unimplemented: Read as ‘0’
C2EVT: Comparator 2 Event
1 = Comparator output changed states
0 = Comparator output did not change states
C1EVT: Comparator 1 Event
1 = Comparator output changed states
0 = Comparator output did not change states
C2EN: Comparator 2 Enable
1 = Comparator is enabled
0 = Comparator is disabled
C1EN: Comparator 1 Enable
1 = Comparator is enabled
0 = Comparator is disabled
C2OUTEN: Comparator 2 Output Enable(1)
1 = Comparator output is driven on the output pad
0 = Comparator output is not driven on the output pad
C1OUTEN: Comparator 1 Output Enable(2)
1 = Comparator output is driven on the output pad
0 = Comparator output is not driven on the output pad
C2OUT: Comparator 2 Output bit
When C2INV = 0:
1 = C2 VIN+ > C2 VIN-
0 = C2 VIN+ < C2 VIN-
When C2INV = 1:
0 = C2 VIN+ > C2 VIN-
1 = C2 VIN+ < C2 VIN-
Note 1:
2:
If C2OUTEN = 1, the C2OUT peripheral output must be configured to an available RPx pin. See
Section 11.6 “Peripheral Pin Select” for more information.
If C1OUTEN = 1, the C1OUT peripheral output must be configured to an available RPx pin. See
Section 11.6 “Peripheral Pin Select” for more information.
DS70293E-page 232
© 2011 Microchip Technology Inc.