PIC16F887-E/P Microchip Technology, PIC16F887-E/P Datasheet - Page 31

IC PIC MCU FLASH 8KX14 40DIP

PIC16F887-E/P

Manufacturer Part Number
PIC16F887-E/P
Description
IC PIC MCU FLASH 8KX14 40DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F887-E/P

Core Size
8-Bit
Program Memory Size
14KB (8K x 14)
Mfg Application Notes
Intro to Capacitive Sensing Appl Notes Layout and Physical Design Appl Note
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
35
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
368 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
40-DIP (0.600", 15.24mm)
Controller Family/series
PIC16F
No. Of I/o's
35
Eeprom Memory Size
256Byte
Ram Memory Size
368Byte
Cpu Speed
20MHz
No. Of Timers
3
Package
40PDIP
Device Core
PIC
Family Name
PIC16
Maximum Speed
20 MHz
Operating Supply Voltage
2.5|3.3|5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
35
Interface Type
I2C/SPI/USART
On-chip Adc
14-chx10-bit
Number Of Timers
3
Processor Series
PIC16F
Core
PIC
Data Ram Size
368 B
Maximum Clock Frequency
20 MHz
Maximum Operating Temperature
+ 125 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 53273-916
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM164123, DM164120-3, DV164122
Minimum Operating Temperature
- 40 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA18XP400 - DEVICE ADAPTER 18F4220 PDIP 40LD
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F887-E/P
Manufacturer:
TI
Quantity:
12 000
Part Number:
PIC16F887-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
5.0
For PIC16F88X, once the CP bit is programmed to ‘0’,
all program memory locations read all ‘0’s. Further
programming is disabled for the entire program
memory.
Data memory is protected with its own Code-Protect bit
(CPD). When enabled, the data memory can still be
programmed and read using the EECON1 register
(See the applicable data sheet for more information).
The user ID locations and the Configuration Word can
be programmed and read out regardless of the state of
the CP and CPD bits.
5.1
It is recommended to use the procedure in Figure 3-21
to disable code protection of the device. This sequence
will erase the program memory, data memory, Configu-
ration Word (0x2007-0x2008) and user ID locations
(0x2000-0x2003). The Calibration Words (0x2009) will
not be erased.
5.2
To allow portability of code, the programmer is required
to read the Configuration Words and user ID locations
from the hex file when loading the hex file. If Configura-
tion Words information was not present in the hex file,
a simple warning message may be issued. Similarly,
while saving a hex file, Configuration Words and user
ID information must be included. An option to not
include this information may be provided.
Specifically for the PIC16F88X, the data memory
should also be embedded in the hex file (see
Section 5.3.2 “Embedding Data Memory Contents
In Hex File”).
Microchip Technology Incorporated feels strongly that
this feature is important for the benefit of the end
customer.
 2009 Microchip Technology Inc.
Note:
CODE PROTECTION
Disabling Code Protection
Embedding Configuration Words
and User ID Information in the Hex
File
To ensure system security, if CPD bit = 0,
Bulk Erase Program Memory command
will also erase data memory.
5.3
5.3.1
Checksum is calculated by reading the contents of the
PIC16F88X memory locations and adding up the
opcodes up to the maximum user addressable location,
(e.g., 0x1FFF for PIC16F886/887). Any carry bits
exceeding 16 bits are neglected. Finally, the Configura-
tion Words (appropriately masked) are added to the
checksum. Checksum computation for the PIC16F88X
devices is shown in Table 5-1.
The checksum is calculated by summing the following:
• The contents of all program memory locations
• The Configuration Words, appropriately masked
• Masked user ID locations (when applicable)
The Least Significant 16 bits of this sum is the
checksum.
The following table describes how to calculate the
checksum for each device. Note that the checksum
calculation differs depending on the code-protect
setting. Since the program memory locations read out
zeroes when code-protected, the table describes how
to manipulate the actual program memory values to
simulate values that would be read from a protected
device. When calculating a checksum by reading a
device, the entire program memory can simply be read
and summed. The Configuration Words and user ID
locations can always be read regardless of code-
protect setting.
Note:
Checksum Computation
CHECKSUM
Some older devices have an additional
value added in the checksum. This is to
maintain compatibility with older device
programmer checksums.
PIC16F88X
DS41287D-page 31

Related parts for PIC16F887-E/P