PIC16F785-I/P Microchip Technology Inc., PIC16F785-I/P Datasheet - Page 69

no-image

PIC16F785-I/P

Manufacturer Part Number
PIC16F785-I/P
Description
MCU, 8-Bit, 2KW Flash, 128 RAM, 18 I/O, DIP-20
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F785-I/P

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
17
Memory Type
Flash
Number Of Bits
8
Package Type
20-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
REGISTER 9-2:
© 2006 Microchip Technology Inc.
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1-0
bit 7
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 RC4/C2OUT/PH2
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 C2V
0 = C2VP connects to RC0/AN4/C2IN+
C2CH<1:0>: Comparator C2 Channel Select bits
00 = C2VN of C2 connects to RA1/AN1/C12IN0-/V
01 = C2VN of C2 connects to RC1/AN5/C12IN1-/PH1
10 = C2VN of C2 connects to RC2/AN6/C12IN2-/OP2
11 = C2VN of C2 connects to RC3/AN7/C12IN3-/OP1
CM2CON0: COMPARATOR C2 CONTROL REGISTER 0 (ADDRESS: 11Ah)
Legend:
R = Readable bit
-n = Value at POR
C2OUT = 1, C2VP < C2VN
C2OUT = 0, C2VP > C2VN
C2OUT = 1, C2VP > C2VN
C2OUT = 0, C2VP < C2VN
R/W-0
C2ON
Note 1: C2OUT will only drive RC4/C2OUT/PH2 if: (C2OE = 1) and (C2ON = 1) and
(TRISC<4> = 0).
C2OUT
R-0
R/W-0
C2OE
REF
Preliminary
W = Writable bit
‘1’ = Bit is set
C2POL
R/W-0
(1)
R/W-0
C2SP
PIC16F785/HV785
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
REF
/ICSPCLK
R/W-0
C2R
x = Bit is unknown
C2CH1
R/W-0
DS41249D-page 67
C2CH0
R/W-0
bit 0

Related parts for PIC16F785-I/P