поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PIC16F87 датащи(PDF) 17 Page - Microchip Technology

номер детали PIC16F87
подробное описание детали  Flash Memory Programming Specification
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F87 датащи(HTML) 17 Page - Microchip Technology

Back Button PIC16F87 Datasheet HTML 13Page - Microchip Technology PIC16F87 Datasheet HTML 14Page - Microchip Technology PIC16F87 Datasheet HTML 15Page - Microchip Technology PIC16F87 Datasheet HTML 16Page - Microchip Technology PIC16F87 Datasheet HTML 17Page - Microchip Technology PIC16F87 Datasheet HTML 18Page - Microchip Technology PIC16F87 Datasheet HTML 19Page - Microchip Technology PIC16F87 Datasheet HTML 20Page - Microchip Technology PIC16F87 Datasheet HTML 21Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 24 page
background image
 2002 Microchip Technology Inc.
DS39607B-page 17
PIC16F87/88
5.0
EMBEDDING CONFIGURATION WORD AND ID INFORMATION IN HEX FILE
6.0
CHECKSUM COMPUTATION
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)
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.
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.
TABLE 6-1:
CHECKSUM COMPUTATION
Device
Code-
Protect
Checksum*
Blank
Value
0x25E6 at 0
and Max
Address
PIC16F87
OFF
SUM(0000:0FFF) + (CONFIG0 & 3FFF) + (CONFIG1 & 0003)
3002
FBD0
ON
(CONFIG0 & 3FFF) + (CONFIG1 & 0003) + SUM_ID
5004
IBD2
PIC16F88
OFF
SUM(0000:0FFF) + (CONFIG0 & 3FFF) + (CONFIG1 & 0003)
3002
FBD0
ON
(CONFIG0 & 3FFF) + (CONFIG1 & 0003) + SUM_ID
5004
IBD2
Legend: CFGW
= Configuration Word
SUM[a:b] = [Sum of locations a to b inclusive]
SUM_ID
= ID locations masked by 0xF, then made into a 16-bit value with ID0 as the Most Significant
nibble.
For example, ID0 = 0x1, ID1 = 0x2, ID3 = 0x3, ID4 = 0x4, then SUM_ID = 0x1234.
*Checksum = [Sum of all the individual expressions] MODULO [0xFFFF]
+
= Addition
&
= Bitwise AND



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com