Generating hex file for Lookup table.

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
fennelly
Professional User
Posts: 14
Joined: Tue 2007-12-11 22:48

Generating hex file for Lookup table.

Post by fennelly »

Hi

I want to use a ROM such as the 2732 as a lookup table.
I have succeeded in generating the hex file and simulating the circuit with a small LUT.

However the only problem is that I have to calculate the checksum and edit the .hex file by hand which is a lot of work and error prone for a big LUT.

Can anyone direct me to a utility that will generate the hex file for me.

Regards,

FJF
Andrew
Labcenter Staff
Posts: 453
Joined: Fri 2006-03-24 15:34
Contact:

Re: Generating hex file for Lookup table.

Post by Andrew »

Hi,

You may load 2732 firmware in binary format (.BIN) which is just an image of ROM with no any CRC or anything like that.

Also you can convert your existing .HEX file into binary format using Hex2Bin converter http://gnuwin32.sourceforge.net/packages/hex2bin.htm

Best regards,
Andrew.
fennelly
Professional User
Posts: 14
Joined: Tue 2007-12-11 22:48

Re: Generating hex file for Lookup table.

Post by fennelly »

Andrew,

Thank you for your reply.

I was hoping to find a utility that would take a text file which contains the contents of each location expressed in hex and convert it to an intel HEX format file.

I will have a look at .bin files - can you advise me where I can get more info on the file format.
Do I just bung the binary data into a text file, how do I seperate each byte?

Regards,

FJF
Andrew
Labcenter Staff
Posts: 453
Joined: Fri 2006-03-24 15:34
Contact:

Re: Generating hex file for Lookup table.

Post by Andrew »

FJF,

Binary format which Proteus firmware loader accepts is just a set of bytes. It is not a textual format.

Best regards,
Andrew.
fennelly
Professional User
Posts: 14
Joined: Tue 2007-12-11 22:48

Re: Generating hex file for Lookup table.

Post by fennelly »

Andrew,

Can you indicate how to create a file with just bytes in it.

Many thanks

FJF
Andrew
Labcenter Staff
Posts: 453
Joined: Fri 2006-03-24 15:34
Contact:

Re: Generating hex file for Lookup table.

Post by Andrew »

Hi FJF,

You can use any hex editor for that. There is a lot of hex editors - both freeware and commercial: http://en.wikipedia.org/wiki/Comparison_of_hex_editors

For example Demo version of HIEW editor http://www.hiew.ru/files/hiew32demo.zip is perfectly enough. I very often use it.

Best regards,
Andrew.
Post Reply