PIC16F87-E/SS Microchip Technology, PIC16F87-E/SS Datasheet - Page 7

IC MCU FLASH 4KX14 EEPROM 20SSOP

PIC16F87-E/SS

Manufacturer Part Number
PIC16F87-E/SS
Description
IC MCU FLASH 4KX14 EEPROM 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F87-E/SS

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
16
Program Memory Size
7KB (4K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
368 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
3.4
Program mode is entered by holding pins RB6 and RB7
low, while raising MCLR pin from V
voltage). In this mode, the state of the RB3 pin does not
effect programming. Low-Voltage ICSP Programming
mode is entered by raising RB3 from V
then applying V
user program memory, as well as the configuration
memory, can be accessed and programmed in serial
fashion. The mode of operation is serial, and the
memory accessed is the user program memory. RB6
and RB7 are Schmitt Trigger inputs in this mode.
The sequence that enters the device into the
Programming mode places all other logic into the
RESET state (the MCLR pin was initially at V
means all I/O are in the RESET state (high-impedance
inputs).
A device RESET will clear the PC and set the address
to ‘0’. The ‘Increment Address’ command will
increment the PC. The ‘Load Configuration’ command
will set the PC to 0x2000. The available commands are
shown in Table 3-1.
The normal sequence for programming four program
memory words at a time is as follows:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. Wait tprog1.
11. Issue an ‘End Programming’ command.
12. Increment to the next address.
13. Repeat steps 5 through 12 seven times to
 2010 Microchip Technology Inc.
Note:
Note:
Set pointer to row location.
Issue a ‘Begin Erase’ command.
Wait tprog2.
Issue an ‘End Programming’ command.
Load a word at the current program memory
address using the ‘Load Data’ command.
Issue an ‘Increment Address’ command.
Load a word at the current program memory
address using the ‘Load Data’ command.
Repeat Step 6 and Step 7 two times.
Issue a ‘Begin Programming’ command to begin
programming.
Program Mode
The Osc must not have 72 osc clocks
while the device MCLR is between V
V
The MCLR pin should be raised from
below V
(V
ensures that the device always enters
Programming
instructions that may be in program
memory can be executed. Otherwise,
unintended instruction execution could
occur when the INTRC clock source is
configured as the primary clock. Refer to
Figure 7-1.
IHH
PP
DD
.
), within 250 µs of V
to MCLR. Once in this mode, the
IL
to above the minimum V
mode
IL
before
DD
IL
to V
to V
rise. This
IHH
IL
DD
IL
). This
, and
(high
and
any
IHH
The address and program counter are reset to 0x0000
by resetting the device (taking MCLR below V
re-entering
configuration memory may then be read or verified
using the ‘Read Data’ and ‘Increment Address’
commands.
3.4.1
Low-voltage ICSP Programming mode allows a
PIC16F87/88 device to be programmed using V
only. However, when this mode is enabled by a
Configuration bit (LVP), the PIC16F87/88 device
dedicates RB3 to control entry/exit into Programming
mode.
When the LVP bit is set to ‘1’, the Low-voltage ICSP
Programming entry is enabled. Since the LVP
Configuration
Programming entry in its erased state, an erased
device will have the LVP bit enabled at the factory.
While LVP is ‘1’, RB3 is dedicated to Low-voltage ICSP
Programming. The following LVP steps assume the
LVP bit is set in the Configuration register.
1.
2.
3.
4.
All other specifications for High-voltage ICSP apply.
To disable Low-voltage ICSP mode, the LVP bit must
be programmed to ‘0’. This must be done while entered
with the High-voltage Entry mode (LVP bit = 1). RB3 is
now a general purpose I/O pin.
program one row.
Apply V
Drive MCLR low.
Apply V
Apply V
LOW-VOLTAGE ICSP
PROGRAMMING MODE
DD
DD
DD
Programming
to the V
to the RB3/PGM pin.
to the MCLR pin.
bit
PIC16F87/88
allows
DD
pin.
mode.
Low-voltage
DS39607C-page 7
Program
IL
) and
ICSP
and
DD

Related parts for PIC16F87-E/SS