English
Language : 

PIC18F67J11-IPT Datasheet, PDF (304/448 Pages) Microchip Technology – 64/80-Pin High-Performance, 1-Mbit Flash Microcontrollers with nanoWatt Technology
PIC18F87J11 FAMILY
REGISTER 22-1: CMxCON: COMPARATORx CONTROL REGISTER
R/W-0
CON
bit 7
R/W-0
COE
R/W-0
CPOL
R/W-1
EVPOL1
R/W-1
EVPOL0
R/W-1
CREF
R/W-1
CCH1
R/W-1
CCH0
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 7
bit 6
bit 5
bit 4-3
bit 2
bit 1-0
CON: Comparator Enable bit
1 = Comparator is enabled
0 = Comparator is disabled
COE: Comparator Output Enable bit
1 = Comparator output is present on the CxOUT pin
0 = Comparator output is internal only
CPOL: Comparator Output Polarity Select bit
1 = Comparator output is inverted
0 = Comparator output is not inverted
EVPOL1:EVPOL0: Interrupt Polarity Select bits
11 = Interrupt generation on any change of the output(1)
10 = Interrupt generation only on high-to-low transition of the output
01 = Interrupt generation only on low-to-high transition of the output
00 = Interrupt generation is disabled
CREF: Comparator Reference Select bit (non-inverting input)
1 = Non-inverting input connects to internal CVREF voltage
0 = Non-inverting input connects to CxINA pin
CCH1:CCH0: Comparator Channel Select bits
11 = Inverting input of comparator connects to VIRV
10 = Inverting input of comparator connects to CxIND pin(2)
01 = Inverting input of comparator connects to CxINC pin(2)
00 = Inverting input of comparator connects to CxINB pin
Note 1: The CMxIF is automatically set any time this mode is selected and must be cleared by the application after
the initial configuration.
2: Available in 80-pin devices only.
DS39778D-page 304
© 2009 Microchip Technology Inc.