PIC16F785-E/SS Microchip Technology, PIC16F785-E/SS Datasheet - Page 8

20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,

PIC16F785-E/SS

Manufacturer Part Number
PIC16F785-E/SS
Description
20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F785-E/SS

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SS1-1 - SOCKET TRANSITION 20DIP 20SSOPAC162060 - HEADER INTRFC MPLAB ICD2 20PIN
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PIC16F785/HV785
3.1.4
The PIC16F785/HV785 will erase different memory
locations depending on the Program Counter (PC), CP
and CPD values, and which erase command is
executed. The following sequences can be used to
erase noted memory locations. In each sequence, the
data memory will be erased if the CPD bit in the
Configuration Word is programmed (clear).
To erase the program memory and Configuration Word
(0x2007), the following sequence must be performed.
1.
2.
To erase the user ID (0x2000-0x2003), Configuration
Word (0x2007) and program memory use the following
sequence. Note that the Calibration Words (0x2008-
0x2009) will not be erased.
1.
2.
3.
TABLE 3-1:
DS41237D-page 8
Load Configuration
Load Data for Program Memory
Load Data for Data Memory
Read Data from Program Memory
Read Data from Data Memory
Increment Address
Begin Programming (internally timed)
Begin Programming (externally timed)
End Programming
Bulk Erase Program Memory (internally timed)
Bulk Erase Data Memory (internally timed)
Row Erase Program Memory (internally timed)
Note 1:
Note:
Note:
Do a Bulk Erase Program Memory command.
Wait T
Perform a Load Configuration command with
dummy data to point the Program Counter (PC)
to 0x2000.
Perform a Bulk Erase Program Memory
command.
Wait T
2:
ERA
ERA
Externally timed Data EE programming is a program-only command. No erase cycle is performed.
V
ERASE ALGORITHMS
The Calibration Words (0x2008-0x2009)
and user ID (0x2000-0x2003) will not be
erased.
See Table 3-2.
DD
to complete erase.
to complete erase.
must be at least 4.0V for this command.
COMMAND MAPPING FOR PIC16F785/HV785
Command
(1)
(2)
(2)
(2)
x
x
x
x
x
x
x
x
x
x
x
x
Mapping (MSb … LSb)
x
x
x
x
x
x
0
1
0
x
x
1
3.1.5
The ICSPCLK pin is used as a clock input and the
ICSPDAT pin is used for entering command bits and
data input/output during serial operation. To input a
command, ICSPCLK is cycled six times. Each
command bit is latched on the falling edge of the clock
with the LSb of the command being input first. The data
input onto the ICSPDAT pin is required to have a
minimum setup and hold time (see Table 6-1), with
respect to the falling edge of the clock. Commands that
have data associated with them (read and load) are
specified to have a minimum delay of 1 s between the
command and the data. After this delay, the clock pin is
cycled 16 times with the first cycle being a Start bit and
the last cycle being a Stop bit.
During a read operation, the LSb will be transmitted
onto ICSPDAT pin on the rising edge of the second
cycle. For a load operation, the LSb will be latched on
the falling edge of the second cycle. A minimum 1 s
delay
commands,
command, which requires a 100 s T
All commands and data words are transmitted LSb first.
Data is transmitted on the rising edge and latched on
the falling edge of the ICSPCLK. To allow for decoding
of commands and reversal of data pin configuration, a
time separation of at least 1 s is required between a
command and a data word.
The commands that are available are described in
Table 3-1.
0
0
0
0
0
0
1
1
1
1
1
0
is
0
0
0
1
1
1
0
0
0
0
0
0
SERIAL PROGRAM/VERIFY
OPERATION
also
except
0
1
1
0
0
1
0
0
1
0
1
0
specified
0
0
1
0
1
0
0
0
0
1
1
1
for
 2009 Microchip Technology Inc.
0, ones data (14), 0
0, data (14), 0
0, data (8), zero (6), 0
0, data (14), 0
0, data (8), zero (6), 0
the
between
End
DIS
Data
.
Programming
consecutive

Related parts for PIC16F785-E/SS