Questions about the IC 24LC32A

Software questions and issues with the FV-1

Moderator: frank

Post Reply
Hamid Reza Shaabani
Posts: 9
Joined: Fri Feb 19, 2016 5:39 pm

Questions about the IC 24LC32A

Post by Hamid Reza Shaabani »

greetings........................
I am a student and a question occurred to me that it is a question of IC 24LC32A code taking the format (.spn) is the program with the same format to the IC program or the program must convert to file Hex and poured into the IC? Thank you for your excellent site
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

You need to assemble the .spn and save it as a HEX format file. Use SpinAsm and make a project, when you assemble a project you have the option to save it as a HEX file which you can then use in a device programmer.
Frank Thomson
Experimental Noize
pgodfrin
Posts: 3
Joined: Wed Dec 04, 2019 6:33 pm

Re: Questions about the IC 24LC32A

Post by pgodfrin »

Greetings,
Thanks for the useful tips and hints. So far I've got the hex file, but writing it sequentially to the eeprom does not work.

I've got a little of it figured out:

--- 0---|--- 10---|--- 20---|--- 30---|--- 40---|--- 50---|--- 60---|--- 70---|--- 80---|--- 90---|
123456789|123456789|123456789|123456789|123456789|123456789|123456789|123456789|123456789|123456789|
:04001C004005E76272 (un-changed hex code)
:04001800200002A43A
Split up this way:
:04 001C 00 4005E76272
:04 -> Unknown, always the same, perhaps a record delimiter?
001C -> Address, 4 byte increments
00 -> Unknown always 0x00
4005E76272 -> These five bytes may be code, but five is 1 byte too many
Split up this way makes the last four bytes code, which fits the 32 but word of the FV-1 ASM:
:04 0008 0000 00046696
but 0000 (or 0026, 00d9, 0023) is unknown, perhaps it means something to the dev pcb???

Any thoughts? I am going to parse it making the last four bytes the actual code that get's installled at the address denoted by bytes 2-3, and ignote the : and bytes 4-5...
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: Questions about the IC 24LC32A

Post by frank »

See a HEX format reference like https://en.wikipedia.org/wiki/Intel_HEX
Frank Thomson
Experimental Noize
pgodfrin
Posts: 3
Joined: Wed Dec 04, 2019 6:33 pm

Re: Questions about the IC 24LC32A

Post by pgodfrin »

Oh duh - so that what "Intel Hex" means!
pgodfrin
Posts: 3
Joined: Wed Dec 04, 2019 6:33 pm

Re: Questions about the IC 24LC32A

Post by pgodfrin »

Golly! Thanks! Now I can parse it!
pg
Post Reply