PIC16F87-I/P Microchip Technology, PIC16F87-I/P Datasheet - Page 17

IC MCU FLASH 4KX14 EEPROM 18DIP

PIC16F87-I/P

Manufacturer Part Number
PIC16F87-I/P
Description
IC MCU FLASH 4KX14 EEPROM 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F87-I/P

Program Memory Type
FLASH
Program Memory Size
7KB (4K x 14)
Package / Case
18-DIP (0.300", 7.62mm)
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
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 ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
368 B
Interface Type
SSP/USART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
16
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163014
Minimum Operating Temperature
- 40 C
Package
18PDIP
Device Core
PIC
Family Name
PIC16
Maximum Speed
20 MHz
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ACICE0202 - ADAPTER MPLABICE 18P 300 MILAC164010 - MODULE SKT PROMATEII DIP/SOIC
Data Converters
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F87-I/P
Manufacturer:
MICROCHIP
Quantity:
3 000
5.0
6.0
Checksum is calculated by reading the contents of the
PIC16F87/88 memory locations and totaling the
opcodes, up to the maximum user-addressable
location (e.g., 0xFFF for the PIC16F87/88). Any carry
bits exceeding 16 bits are neglected. Finally, the
Configuration Word (appropriately masked) is added to
the checksum. Checksum computation for each
member of the PIC16F87/88 devices is shown in
Table 6-1.
The checksum is calculated by summing the following:
• The contents of all program memory locations
• The Configuration Words, appropriately masked
• Masked ID locations (when applicable)
TABLE 6-1:
 2010 Microchip Technology Inc.
PIC16F87
PIC16F88
Legend: CFGW
To allow portability of code, the programmer is required to read the Configuration Word and ID locations from the HEX
file when loading the HEX file. If Configuration Word information was not present in the HEX file, a simple warning
message may be issued. Similarly, while saving a HEX file, Configuration Word and ID information must be included.
An option to not include this information may be provided.
Specifically for the PIC16F87/88, the EEPROM data memory should also be embedded in the HEX file (see
Section 3.2 “Data EEPROM Memory”).
Microchip Technology Inc. feels strongly that this feature is important for the benefit of the end customer.
Device
EMBEDDING CONFIGURATION WORD AND ID INFORMATION IN HEX FILE
CHECKSUM COMPUTATION
SUM[a:b] = [Sum of locations a to b inclusive]
SUM_ID
*Checksum = [Sum of all the individual expressions] MODULO [0xFFFF]
+
&
Protect
CHECKSUM COMPUTATION
Code-
OFF
OFF
ON
ON
= Configuration Word
= ID locations masked by 0xF, then made into a 16-bit value with ID0 as the Most Significant
= Addition
= Bitwise AND
nibble.
For example, ID0 = 0x1, ID1 = 0x2, ID3 = 0x3, ID4 = 0x4, then SUM_ID = 0x1234.
SUM(0000:0FFF) + (CONFIG0 & 3FFF) + (CONFIG1 & 0003)
(CONFIG0 & 3FFF) + (CONFIG1 & 0003) + SUM_ID
SUM(0000:0FFF) + (CONFIG0 & 3FFF) + (CONFIG1 & 0003)
(CONFIG0 & 3FFF) + (CONFIG1 & 0003) + SUM_ID
Checksum*
The Least Significant 16 bits of this sum are 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
differently depending on the code protect setting, the
table describes how to manipulate the actual program
memory values to simulate the 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 ID locations can always be
read.
Note that some older devices have an additional value
added in the checksum. This is to maintain compatibility
with older device programmer checksums.
PIC16F87/88
Blank
Value
3002
5004
3002
5004
DS39607C-page 17
0x25E6 at 0
and Max
Address
FBD0
FBD0
IBD2
IBD2

Related parts for PIC16F87-I/P