PIC18LF13K22 Microchip Technology, PIC18LF13K22 Datasheet - Page 31

no-image

PIC18LF13K22

Manufacturer Part Number
PIC18LF13K22
Description
(PIC18F1xK22) Flash Microcontrollers
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18LF13K22-I/ML
Manufacturer:
CAVIUM
Quantity:
155
Part Number:
PIC18LF13K22-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
www.DataSheet4U.com
7.0
To allow portability of code, a PIC18F1XK22/LF1XK22
programmer is required to read the Configuration Word
locations from the hex file. If Configuration Word infor-
mation is not present in the hex file, then a simple warn-
ing message should be issued. Similarly, while saving
a hex file, all Configuration Word information must be
included. An option to not include the Configuration
Word information may be provided. When embedding
Configuration Word information in the hex file, it should
start at address 300000h.
Microchip Technology Inc. feels strongly that this
feature is important for the benefit of the end customer.
7.1
To allow portability of code, a PIC18F1XK22/LF1XK22
programmer is required to read the data EEPROM
information from the hex file. If data EEPROM informa-
tion is not present, a simple warning message should
be issued. Similarly, when saving a hex file, all data
EEPROM information must be included. An option to
not include the data EEPROM information may be pro-
vided. When embedding data EEPROM information in
the hex file, it should start at address F00000h.
Microchip Technology Inc. believes that this feature is
important for the benefit of the end customer.
7.2
The checksum is calculated by summing the following:
• The contents of all code memory locations
• The Configuration Word, appropriately masked
• ID locations (Only if any portion of program
The Least Significant 16 bits of this sum are the
checksum.
Code protection limits access to program memory by
both external programmer (code-protect) and code
execution (table read protect). The ID locations, when
included in a code protected checksum, contain the
checksum of an unprotected part. The unprotected
checksum is distributed: one nibble per ID location.
Each nibble is right justified.
© 2008 Microchip Technology Inc.
memory is code-protected)
EMBEDDING CONFIGURATION
WORD INFORMATION IN THE
HEX FILE
Embedding Data EEPROM
Information In the HEX File
Checksum Computation
Advance Information
PIC18F1XK22/LF1XK22
Table 7-1 describes how to calculate the checksum for
each device.
Note:
The checksum calculation differs depend-
ing on the code-protect setting. Since the
code memory locations read out differently
depending on the code-protect setting, the
table describes how to manipulate the
actual code memory values to simulate
the values that would be read from a
protected device. When calculating a
checksum by reading a device, the entire
code memory can simply be read and
summed. The Configuration Word and ID
locations can always be read.
DS41357A-page 31

Related parts for PIC18LF13K22