Page 1 of 2

DS2431 erasing issue

Posted: Thu Feb 15, 2024 4:03 am
by rsm
I have a DS2431 (tsoc-6 package); I just purchased the revel prog-IS programmer and am very new to this kind of device.

Reading seems fine, it is as follows:
https://drive.google.com/file/d/1WeYGdo ... sp=sharing

When I try to erase memory, all seem to be deleted:
https://drive.google.com/file/d/1w7Irqh ... sp=sharing

But when I click read memory, I still have the first two lines of the code, they are not deleted:
https://drive.google.com/file/d/1odi1RV ... drive_link

My questions are:
1- Is it possible to delete the first two lines and set the chip as totally empty?
2- Will a brand new DS2431 TO-92 packaging have the same issue?


Regards

Re: DS2431 erasing issue

Posted: Thu Feb 15, 2024 9:52 am
by ArT
It seems to me that it's communiation issue. Please show me how did you connected this TSOC-6 - it's important to make the same length of wires and if you are programming in external circuit - it should be not any additional elements on communication line. REVELPROG-IS was tested with DS2431 TO92 package.

Re: DS2431 erasing issue

Posted: Thu Feb 15, 2024 12:51 pm
by rsm
Thank you for the reply.

I tried multiple times, same issue. It is directly connected to the chip as described.

This chip has eight rows of bytes; rows 0000 and 0001 seem to be fixed and not affected by erasing, but the rest 6 I can erase, modify and save as long as the top two rows have not been modified.

Is it possible they locked the top two rows? I'm definitely trying it on a 92 packaging now. Are the packaging interchangeable in function? Now I'm worried it may not work as expected :D.


Kind regards

Re: DS2431 erasing issue

Posted: Thu Feb 15, 2024 3:52 pm
by ArT
Here you have datasheet:
https://www.analog.com/media/en/technic ... DS2431.pdf

Memory is organized to 4 pages each 256bits and each page can be permanently Write Protected. You can read control bytes using custom script tool from addresses >=0x80 as described in datasheet page 7/27

Please check this topic:
viewtopic.php?f=32&t=699&p=3130&hilit=ds2431

Re: DS2431 erasing issue

Posted: Fri Feb 16, 2024 10:46 pm
by rsm
The link helps a lot, thank you.

Ok, so we have:
4 protection control bytes
1 copy protection byte
1 factory byte
2 user bytes
= 8 bytes in total

First five bytes If programmed to AAh or 55h, it can not be erased. Factory bytes are read-only, so they are definitely not erasable, but 2x user bytes are erased and rewritten all day.

Now if I use the revelprog-is software as it is to write in UI, is it programming to AAh or 55h by default?

Does their status as write-protected somehow affect their readability? Or 10/10 chips, would you be able to read the chips completly?

Regards

Re: DS2431 erasing issue

Posted: Mon Feb 19, 2024 9:57 am
by ArT
It does not change any bytes in this register. After programming standard eeprom area, control bytes stays the same. You need to change them intentionally e.g. with custom script.

Many chips have some configuration or protection bytes which are not accessed in standard usable range addresses.

Re: DS2431 erasing issue

Posted: Wed Feb 21, 2024 9:27 am
by rsm
Now, I'm talking very specifically about the programmer device and its app. If I write on a brand new DS2431 chip, will it write-protect it by default at address 0080h* to 0084h*?

Basically, what I'm asking is what is the difference between writing and reading via app UI functions, and customs scripts mentioned?

Regards

Re: DS2431 erasing issue

Posted: Wed Feb 21, 2024 10:15 am
by ArT
When you select DS2431 from memory database you can read/write standard memory area (0x00 - 0x7F) - data memory page 0,1,2 and 3. Additional registers (0x80 - 0x8F) are untouched.

With custom script tool you can do anything. You can read/write single bytes at specific addr, you can modify additional registers, you can use it for automation etc. You can also make standard read (0x00 - 0x7F) and results will be the same as when you select DS2431 from database.

Re: DS2431 erasing issue

Posted: Sat Feb 24, 2024 4:09 pm
by rsm
This explains a lot, thank you.

How would you approach the task of storing the content of a DS2431 and copying it entirely on a new DS2431?

I don't see a customer script for reading/writing all the address ranges.


Kind regards

Re: DS2431 erasing issue

Posted: Mon Feb 26, 2024 12:11 pm
by ArT
Because content is only on addr range 0x0 - 0x7F.

If you would like to set protection bytes you will need to do it with script. You can make own script and use it with automatic mode viewtopic.php?f=32&t=913