Mitsubishi Motors DS5000TK User Manual

Page 140

Advertising
background image

USER’S GUIDE

050396 139/173

140

INTEL HEX FILE FORMAT

8051–compatible assemblers produce an absolute out-
put file in Intel Hex format. These files are composed of a
series of records. Records in an Intel Hex file have the
following format:

<Header><Hex Information><Record Terminator>

The specific record elements are detailed as follows:

: II aaaa tt dddddd ... dd xx
Where:
:

Indicates a record beginning

II

Indicates the record length

aaaa Indicates the 16 bit load address

tt

Indicates the record type

dd

Indicates hex data

xx

Indicates the checksum = (2’s complement
(II+aa+a+tt+dd+dd+...dd)

Record type 00 indicates a data record and type 01 indi-
cates an end record. An end record will appear as :00
00000 01 FF. These are the only valid record types for a
NIL hex file. Spaces are provided for clarity.

The following is a short Intel hex file. The data bytes be-
gin at 01 and count up to 2F. Notice the records length,
beginning address, and record type at the start of each
line and the checksum at the end.

:200000000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20D0
:0F0020002122232425262728292A2B2C2D2E2F79
:00000001FF

Advertising
This manual is related to the following products: