Datasheet
PIC24FV16KM204 FAMILY
DS30003030B-page 238 2013 Microchip Technology Inc.
bit 2 Unimplemented: Read as ‘0’
bit 1-0 CCH<1:0>: Comparator x Channel Select bits
11 = Inverting input of the comparator connects to BGBUF1
(1)
10 = Inverting input of the comparator connects to the CxIND pin
01 = Inverting input of the comparator connects to the CxINC pin
00 = Inverting input of the comparator connects to the CxINB pin
REGISTER 22-1: CMxCON: COMPARATOR x CONTROL REGISTERS (CONTINUED)
Note 1: BGBUF1 voltage is configured by BUFREF1<1:0> (BUFCON0<1:0>).
2: If the EVPOL<1:0> bits are set to a value other than ‘00’, the first interrupt generated will occur on any
transition of COUT. Subsequent interrupts will occur based on the EVPOLx bits setting.
REGISTER 22-2: CMSTAT: COMPARATOR MODULE STATUS REGISTER
R/W-0 U-0 U-0 U-0 U-0 R-0, HSC R-0, HSC R-0, HSC
CMIDL
— — — — C3EVT
(1)
C2EVT
(1)
C1EVT
bit 15 bit 8
U-0 U-0 U-0 U-0 U-0 R-0, HSC R-0, HSC R-0, HSC
— — — — —C3OUT
(1)
C2OUT
(1)
C1OUT
bit 7 bit 0
Legend: HSC = Hardware Settable/Clearable 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 CMIDL: Comparator x Stop in Idle Mode bit
1 = Comparator interrupts are disabled in Idle mode; enabled comparators remain operational
0 = Continues operation of all enabled comparators in Idle mode
bit 14-11 Unimplemented: Read as ‘0’
bit 10 C3EVT: Comparator 3 Event Status bit (read-only)
(1)
Shows the current event status of Comparator 3 (CM3CON<9>).
bit 9 C2EVT: Comparator 2 Event Status bit (read-only)
(1)
Shows the current event status of Comparator 2 (CM2CON<9>).
bit 8 C1EVT: Comparator 1 Event Status bit (read-only)
Shows the current event status of Comparator 1 (CM1CON<9>).
bit 7-3 Unimplemented: Read as ‘0’
bit 2 C3OUT: Comparator 3 Output Status bit (read-only)
(1)
Shows the current output of Comparator 3 (CM3CON<8>).
bit 1 C2OUT: Comparator 2 Output Status bit (read-only)
(1)
Shows the current output of Comparator 2 (CM2CON<8>).
bit 0 C1OUT: Comparator 1 Output Status bit (read-only)
Shows the current output of Comparator 1 (CM1CON<8>).
Note 1: Comparator 2 and Comparator 3 are only available on PIC24F(V)16KM2XX devices.