PIC16F87-E/ML Microchip Technology, PIC16F87-E/ML Datasheet - Page 10
![IC MCU FLASH 4KX14 EEPROM 28QFN](/photos/6/81/68120/150-28-qfn_sml.jpg)
PIC16F87-E/ML
Manufacturer Part Number
PIC16F87-E/ML
Description
IC MCU FLASH 4KX14 EEPROM 28QFN
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F688T-ISL.pdf
(688 pages)
3.PIC16F818-ISO.pdf
(6 pages)
4.PIC16F87-IP.pdf
(228 pages)
5.PIC16F87-IP.pdf
(8 pages)
6.PIC16F87-IP.pdf
(4 pages)
7.PIC16F87-IP.pdf
(8 pages)
8.PIC16F87-IP.pdf
(24 pages)
Specifications of PIC16F87-E/ML
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
28-VQFN Exposed Pad, 28-HVQFN, 28-SQFN, 28-DHVQFN
For Use With
XLT28QFN3 - SOCKET TRAN ICE 18DIP/28QFNAC164033 - ADAPTER 28QFN TO 18DIPDV007003 - PROGRAMMER UNIVERSAL PROMATE II
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
PIC16F87/88
3.5
Depending on the state of the code protection bits,
program and data memory will be erased using
different methods. The first two commands are used
when both program and data memories are not code
protected. The third command is used when either
memory is code protected, or if you want to also erase
the code protect bits. A device programmer should
determine the state of the code protection bits and then
apply the proper command to erase the desired
memory.
3.5.1
When both program and data memories are not code-
protected, they can be individually erased by the
following ‘Bulk Erase’ commands. If it is desired to
erase both program and data memory with a single
command, the ‘Chip Erase’ command must be used
whether code protection is disabled or enabled
(detailed in Section 3.5.1.3 “Chip Erase”).
3.5.1.1
When this command is performed, and is followed by
a ‘Begin Erase’ command, the entire program memory
will be erased.
If the address is pointing to user memory, only the user
memory will be erased.
If the address is pointing to the configuration memory
(2000h-2008h), then both the user memory and the
configuration memory will be erased. The Configura-
tion Words will not be erased, even if the address is
pointing to location 2007h.
Previously, a load data with 0FFh command was
recommended before any ‘Bulk Erase’. On these
devices, this will not be required.
The ‘Bulk Erase’ command is disabled when the CP
bit is programmed to ‘0’, enabling code-protect.
A timing diagram for this command is shown in
Figure 7-8.
3.5.1.2
When this command is performed, and is followed by
a ‘Begin Erase’ command, the entire data memory will
be erased.
The ‘Bulk Erase Data’ command is disabled when the
CPD bit is programmed to ‘0’, enabling protected data
memory. A timing diagram for this command is shown
in Figure 7-9.
DS39607C-page 10
Note:
Erasing Program and Data
Memory
ERASING PROGRAM AND
DATA MEMORY
All ‘Bulk Erase’ operations must take place
at the 4.5V to 5.5V V
Bulk Erase Program Memory
Bulk Erase Data Memory
DD
range.
3.5.1.3
This command, when performed, will erase the
program memory, EE data memory, and all of the code
protection bits. All on-chip Flash and EEPROM
memory is erased, regardless of the address contained
in the PC.
When a Chip Erase command is issued and the PC
points to (0000h-1FFFh), the Configuration Words
(2007h and 2008h) and the user program memory will
be erased. When a Chip Erase command is issued and
the PC points to (2000h-2008h), all of the configuration
memory, program memory, and data memory will be
erased.
The Chip Erase is internally self-timed to ensure that all
program and data memory are erased before the code
protect bits are erased. A timing diagram for this
command is shown in Figure 7-10.
3.5.2
For the PIC16F87/88 devices, once code protection is
enabled, all protected program and data memory
locations read all '0's and further programming is
disabled. The ID locations and Configuration Words
read out unscrambled and can be reprogrammed
normally. The only command to erase a code-protected
PIC16F87/88 device is the ‘Chip Erase’. This erases
program memory, data memory, Configuration bits and
ID locations, as described in Section 3.5.1.3 “Chip
Erase”. Since all data within the program and data
memory will be erased when this command is
executed, the security of the data or code is not
compromised.
Note:
The Chip Erase operation must take place
at the 4.5V to 5.5V V
ERASING CODE-PROTECTED
MEMORY
Chip Erase
2010 Microchip Technology Inc.
DD
range.