English
Language : 

PIC16F526 Datasheet, PDF (63/122 Pages) Microchip Technology – 14-Pin, 8-Bit Flash Microcontroller
PIC16F526
10.0 COMPARATOR(S)
This device contains two comparators and a
comparator voltage reference.
REGISTER 10-1: CM1CON0: COMPARATOR C1 CONTROL REGISTER
R-1
C1OUT
bit 7
R/W-1
C1OUTEN
R/W-1
C1POL
R/W-1
C1T0CS
R/W-1
C1ON
R/W-1
C1NREF
R/W-1
C1PREF
R/W-1
C1WU
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
C1OUT: Comparator Output bit
1 = VIN+ > VIN-
0 = VIN+ < VIN-
bit 6
C1OUTEN: Comparator Output Enable bit(1), (2)
1 = Output of comparator is NOT placed on the C1OUT pin
0 = Output of comparator is placed in the C1OUT pin
bit 5
C1POL: Comparator Output Polarity bit(2)
1 = Output of comparator is not inverted
0 = Output of comparator is inverted
bit 4
C1T0CS: Comparator TMR0 Clock Source bit(2)
1 = TMR0 clock source selected by T0CS control bit
0 = Comparator output used as TMR0 clock source
bit 3
C1ON: Comparator Enable bit
1 = Comparator is on
0 = Comparator is off
bit 2
C1NREF: Comparator Negative Reference Select bit(2)
1 = C1IN- pin
0 = 0.6V VREF
bit 1
C1PREF: Comparator Positive Reference Select bit(2)
1 = C1IN+ pin
0 = C1IN- pin
bit 0
C1WU: 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 T0CS bit for TRIS control of RB2.
2: When comparator is turned on, these control bits assert themselves. Otherwise, the other registers have
precedence.
 2010 Microchip Technology Inc.
DS41326D-page 63