The Intel hex format


The Intel hex format has been a standard in programming microcontrollers for years and is used for saving data (software, datasets). A line in the Intel hex format is usually structured as follows:

The data length indicates the number of data bytes in the record. It lies between '00' and 'FF' and always has two digits. The four digits of the address describe the memory address to which the data is loaded. Two values are standardized for the record type: '00' for 'Record contains data' and '01' for 'This is the last record of the transmission'. Two bytes of transmitted data always yield a data byte. The checksum is the two's complement of the 8-bit sum of all ASCII values of the record from the data length up to the last data byte. 

Examples of hex files:

The color codes indicate the part of the record that includes the individual bytes. A typical end record looks as follows:

 


Further topics:

More information on: Intel hex format, extract from PC News

More information on: FAQ


UpHigher-level section


© by Voith Turbo GmbH & Co. KG
send remarks to joachim.ehleiter@voith.com (electronic department) or r.theilacker@voith.com (electronic department)