SW500008 Microchip Technology, SW500008 Datasheet - Page 165

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
Linker and Utilities
5.15.1.5 -CK
The -CK option is for calculating a checksum. The usage of this option is:
where:
A typical example of the use of the checksum option is:
This will calculate a checksum over the range 0-1FFFh and program the checksum result at address
2FFEh, checksum value will apply an initial offset of 2100h. The result will be two bytes wide.
5.15.1.6 -FILL
The -FILL option is used for filling unused memory locations with a known value. The usage of this
option is:
where:
-CK=start-end@destination[+offset][wWidth][tCode][gAlogithm]
Start and End specify the address range that the checksum will be calculated over.
Destination is the address where to store the checksum result. This value cannot be within the
range of calculation.
Offset is an optional initial value to add to the checksum result. Width is optional and specifies
the byte-width of the checksum result. Results can be calculated for byte-widths of 1 to 4
bytes. If a positive width is requested, the result will be stored in big-endian byte order. A
negative width will cause the result to be stored in little-endian byte order. If the width is left
unspecified, the result will be 2 bytes wide and stored in little-endian byte order.
Code is a hexadecimal code that will trail each byte in the checksum result. This can allow
each byte of the checksum result to be embedded within an instruction.
Algorithm is an integer to select which hexmate algorithm to use to calculate the checksum
result. A list of selectable algorithms are given in Table 5.10. If unspecified, the default
checksum algorithm used is 8 bit addition.
-CK=0-1FFF@2FFE+2100w2
-FILL=Code@Start-End[,data]
Code is the opcode that will be programmed to unused locations in memory. Multi-byte codes
should be entered in little endian order.
Hexmate
151

Related parts for SW500008