beautypg.com

2 intel hex386 file format, Intel hex386 file format – Maxim Integrated 71M6534 Energy Meter IC Family Software User Manual

Page 34

background image

71M653X Software User’s Guide

4.8.2 Intel Hex386 File Format

For banked code, the Intel Hex386 file format (Extended Linear Address Records) is used:

Extended linear address records are also known as 32-bit address records and HEX386 records. These records
contain the upper 16 bits (bits 16-31) of the data address. The extended linear address record always has two data
bytes and appears as follows:

:02000004FFFFFC

where:

ƒ

02

is the number of data bytes in the record.

ƒ

0000

is the address field. For the extended linear address record, this field is always 0000.

ƒ

04

is the record type 04 (an extended linear address record).

ƒ

FFFF

is the upper 16 bits of the address.

ƒ

FC

is the checksum of the record and is calculated as

01h + NOT(02h + 00h + 00h + 04h + FFh + FFh).

When an extended linear address record is read, the extended linear address stored in the data field is saved and is
applied to subsequent records read from the Intel HEX file. The linear address remains effective until changed by
another extended address record.

The absolute-memory address of a data record is obtained by adding the address field in the record to the shifted
address data from the extended linear address record. The following example illustrates this process:

Address from the data record's address field 2462

Extended linear address record data field FFFF

--------

Absolute-memory address FFFF2462

v1.1v1.1

TERIDIAN Proprietary

34 of 116

© Copyright 2005-2008 TERIDIAN Semiconductor Corporation

This manual is related to the following products: