English
Language : 

PIC16F1782 Datasheet, PDF (175/420 Pages) Microchip Technology – 28-Pin 8-Bit Advanced Analog Flash Microcontrollers
PIC16(L)F1782/3
REGISTER 20-2: CMxCON1: COMPARATOR Cx CONTROL REGISTER 1
R/W-0/0
CxINTP
bit 7
R/W-0/0
CxINTN
R/W-0/0
R/W-0/0
R/W-0/0
CxPCH<2:0>
R/W-0/0
R/W-0/0
CxNCH<2:0>
R/W-0/0
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7
bit 6
bit 5-3
bit 2-0
CxINTP: Comparator Interrupt on Positive Going Edge Enable bits
1 = The CxIF interrupt flag will be set upon a positive going edge of the CxOUT bit
0 = No interrupt flag will be set on a positive going edge of the CxOUT bit
CxINTN: Comparator Interrupt on Negative Going Edge Enable bits
1 = The CxIF interrupt flag will be set upon a negative going edge of the CxOUT bit
0 = No interrupt flag will be set on a negative going edge of the CxOUT bit
CxPCH<2:0>: Comparator Positive Input Channel Select bits
000 = CxVP connects to CxIN0+ pin
001 = CxVP connects to CxIN1+ pin
010 = Reserved, input floating
011 = Reserved, input floating
100 = Reserved, input floating
101 = CxVP connects to VDAC
110 = CxVP connects to FVR Buffer 2
111 = CxVP connects to AGND
CxNCH<2:0>: Comparator Negative Input Channel Select bits
000 = CxVN connects to CxIN0- pin
001 = CxVN connects to CxIN1- pin
010 = CxVN connects to CxIN2- pin
011 = CxVN connects to CxIN3- pin
100 = Reserved, input floating
101 = Reserved, input floating
110 = Reserved, input floating
111 = CxVN connects to AGND
 2011 Microchip Technology Inc.
Preliminary
DS41579A-page 175