English
Language : 

PIC16F526 Datasheet, PDF (64/122 Pages) Microchip Technology – 14-Pin, 8-Bit Flash Microcontroller
PIC16F526
REGISTER 10-2: CM2CON0: COMPARATOR C2 CONTROL REGISTER
R-1
C2OUT
bit 7
R/W-1
C2OUTEN
R/W-1
C2POL
R/W-1
C2PREF2
R/W-1
C2ON
R/W-1
C2NREF
R/W-1
C2PREF1
R/W-1
C2WU
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
C2OUT: Comparator Output bit
1 = VIN+ > VIN-
0 = VIN+ < VIN-
bit 6
C2OUTEN: Comparator Output Enable bit(1), (2)
1 = Output of comparator is NOT placed on the C2OUT pin
0 = Output of comparator is placed in the C2OUT pin
bit 5
C2POL: Comparator Output Polarity bit(2)
1 = Output of comparator not inverted
0 = Output of comparator inverted
bit 4
C2PREF2: Comparator Positive Reference Select bit(2)
1 = C1IN+ pin
0 = C2IN- pin
bit 3
C2ON: Comparator Enable bit
1 = Comparator is on
0 = Comparator is off
bit 2
C2NREF: Comparator Negative Reference Select bit(2)
1 = C2IN- pin
0 = CVREF
bit 1
C2PREF1: Comparator Positive Reference Select bit(2)
1 = C2IN+ pin
0 = C2PREF2 controls analog input selection
bit 0
C2WU: Comparator Wake-up on Change Enable bit(2)
1 = Wake-up on Comparator change is disabled
0 = Wake-up on Comparator change is enabled.
Note 1: Overrides TOCS bit for TRIS control of RC4.
2: When comparator is turned on, these control bits assert themselves. Otherwise, the other registers have
precedence.
DS41326D-page 64
 2010 Microchip Technology Inc.