beautypg.com

Intel hex file format, Intel hex file format -10 – Maxim Integrated Ultra-High-Speed Flash Microcontroller User Manual

Page 168

background image

Ultra-High-Speed Flash

Microcontroller User’s Guide

Intel Hex File Format

Assemblers that are 8051-compatible produce an absolute output file in Intel hex format. These files are composed of a series of

records. Records in an Intel hex file have the following format:

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 = (two’s complement (II+aa+a+tt+dd+dd+...dd)

Record type 00 indicates a data record and type 01 indicates an end record. An end record appears 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 begin at 01 and count up to 2F. Notice the record’s length, beginning address,

and record type at the start of each line and the checksum at the end:

:200000000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20D0

:0F0020002122232425262728292A2B2C2D2E2F79

:00000001FF

Maxim Integrated