Page 1 of 1

Questions about the IC 24LC32A

Posted: Fri Feb 19, 2016 5:43 pm
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

Posted: Sat Feb 20, 2016 11:41 am
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.

Re: Questions about the IC 24LC32A

Posted: Wed Jan 01, 2020 12:56 pm
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...

Re: Questions about the IC 24LC32A

Posted: Wed Jan 01, 2020 1:12 pm
by frank
See a HEX format reference like https://en.wikipedia.org/wiki/Intel_HEX

Re: Questions about the IC 24LC32A

Posted: Wed Jan 01, 2020 2:12 pm
by pgodfrin
Oh duh - so that what "Intel Hex" means!

Re: Questions about the IC 24LC32A

Posted: Wed Jan 01, 2020 2:28 pm
by pgodfrin
Golly! Thanks! Now I can parse it!
pg