PIC16C782 Microchip Technology Inc., PIC16C782 Datasheet - Page 95

no-image

PIC16C782

Manufacturer Part Number
PIC16C782
Description
8-bit Cmos Microcontrollers With A/d, D/a, Opamp, Comparators And Psmc
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C782/JW
Manufacturer:
AD
Quantity:
580
REGISTER 12-2:
2001 Microchip Technology Inc.
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1-0
C2ON: Comparator C2 Enable bit
1 = C2 Comparator is enabled
0 = C2 Comparator is disabled
C2OUT: Comparator C2 Output bit
If C2POL = 1 (inverted polarity):
If C2POL = 0 (non-inverted polarity):
C2OE: Comparator C2 Output Enable bit
1 = C2OUT is present on RB7/C2/PSMC1B/T1G
0 = C2OUT is internal only
C2POL: Comparator C2 Output Polarity Select bit
1 = C2OUT logic is inverted
0 = C2OUT logic is not inverted
C2SP: Comparator C2 Speed Select bit
1 = C2 operates in normal speed mode
0 = C2 operates in low power, slow speed mode.
C2R: Comparator C2 Reference Select bits (non-inverting input)
1 = C2VP connects to V
0 = C2VP connects to V
C2CH<1:0>: Comparator C2 Channel Select bits
00 = C2VN of C2 connects to AN4
01 = C2VN of C2 connects to AN5
10 = C2VN of C2 connects to AN6
11 = C2VN of C2 connects to AN7
Note 1: C2OUT will only drive RB7/C2/PSMC1B/T1G if:
Legend:
R = Readable bit
- n = Value at POR
COMPARATOR C2 CONTROL REGISTER0 (CM2CON0: 11Ah)
bit 7
C2OUT = 1, C2VP < C2VN
C2OUT = 0, C2VP > C2VN
C2OUT = 1, C2VP > C2VN
C2OUT = 0, C2VP < C2VN
R/W-0
C2ON
(C2OE = 1) & (C2ON = 1) & (TRISB<7> = 0) & ((SMCON = 0) or
((SMCOM = 0) & (SCEN = 0))).
C2OUT
R-0
REF
DAC
R/W-0
C2OE
2
Preliminary
W = Writable bit
’1’ = Bit is set
C2POL
R/W-0
R/W-0
C2SP
(1)
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
PIC16C781/782
R/W-0
C2R
x = Bit is unknown
C2CH1
R/W-0
DS41171A-page 93
C2CH0
R/W-0
bit 0

Related parts for PIC16C782