Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hex file format for Intel 87C196 microcontroller

Status
Not open for further replies.

BrianG

Military
Joined
Aug 28, 2001
Messages
357
Location
GB
Hi folks,
We have an old product which uses the 87C196 microcontroller and I need to program some more blank parts for spares. The problem is I can't be sure of the correct hex file format to setup on our Data I-O 2900 programmer for reading in the file from disk.

The file header looks like this:

:02203800F63F71
:01201800FFC8

which is very similar to Intel Hex-32, but not exactly as the second line seems to be missing two characters for the extended address.

Does anyone out there have any ideas?

 
If I remember correctly, you don't define the address on every line. Actually, you only need to define it every 5 or 10 lines. The second line tells you the offset from the last fully defined address. Therfore, it should increment by the number of bytes. I would have to look through some of my old spreadsheets to be 100% sure, but I am very confident that this is how it can work (~99.999%). The advantage of that type of format is that it takes up less space.
 
Try the Intel MSC Hex file format on your DataIO.
 
:AABBBBCCDD...EE

AA = Number of data bytes (DD)
BBBB = Offset from prefix
CC = Prefix load (02 - load prefix, 00 - no load)
DD.. = Data (variable length)
EE = Line checksum

Hopefully, that makes sense....
 
Hi, they are intel hex lines, they are both data records.
 
Exactly. The first one has 2 data bytes, while the second has 1 data byte.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top