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

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
PIC16F785/HV785
REGISTER 12-1:
REGISTER 12-2:
TABLE 12-2:
DS41249D-page 82
Analog
Select
Analog
Channel
I/O Pin
Mode
ANS11
AN11
bit 7-0
bit 7-4
bit 3-0
RB5
ANALOG SELECT CROSS REFERENCE
ANS10
AN10
RB4
ANSEL1: ANALOG SELECT REGISTER (ADDRESS: 93h)
ANSEL0: ANALOG SELECT REGISTER (ADDRESS: 91h)
ANS<7:0>: Analog Select bits
Analog select between analog or digital function on pins AN<7:0>, respectively.
1 = Analog input. Pin is assigned as analog input.
0 = Digital I/O. Pin is assigned to port or special function.
bit 7
Unimplemented: Read as ‘0’
ANS<11:8>: Analog Select bits
Analog select between analog or digital function on pins AN<11:8>, respectively.
1 = Analog input. Pin is assigned as analog input.
0 = Digital I/O. Pin is assigned to port or special function.
bit 7
Legend:
R = Readable bit
-n = Value at POR
Legend:
R = Readable bit
-n = Value at POR
R/W-1
ANS7
Note 1: Setting a pin to an analog input automatically disables the digital input circuitry,
Note 1: Setting a pin to an analog input automatically disables the digital input circuitry,
U-0
ANS9
AN9
RC7
weak pull-ups, and interrupt-on-change, if available. The corresponding TRIS bit
must be set to Input mode in order to allow external control of the voltage on the
pin. Port reads of pins configured assigned as analog inputs will read as ‘0’.
weak pull-ups, and interrupt-on-change, if available. The corresponding TRIS bit
must be set to Input mode in order to allow external control of the voltage on the
pin. Port reads of pins assigned as analog inputs will read as ‘0’.
R/W-1
ANS6
ANS8
U-0
RC6
AN8
ANS7
AN7
RC3
R/W-1
ANS5
U-0
Preliminary
W = Writable bit
‘1’ = Bit is set
W = Writable bit
‘1’ = Bit is set
ANS6
RC2
AN6
Reference
R/W-1
ANS4
U-0
ANS5
AN5
RC1
(1)
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
ANS11
(1)
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/W-1
R/W-1
ANS3
ANS4
AN4
RC0
ANS3
AN3
RA4
ANS10
R/W-1
R/W-1
ANS2
© 2006 Microchip Technology Inc.
ANS2
AN2
RA2
x = Bit is unknown
x = Bit is unknown
R/W-1
R/W-1
ANS1
ANS9
ANS1
AN1
RA1
R/W-1
R/W-1
ANS0
ANS8
ANS0
AN0
RA0
bit 0
bit 0

Related parts for PIC16F785-I/P