DS2431 erasing issue

Interesting examples and tutorials about REVELPROG-IS features and device programming
rsm
Posts: 8
Joined: Thu Feb 15, 2024 3:42 am
Has thanked: 8 times

Re: DS2431 erasing issue

Postby rsm » Mon Feb 26, 2024 5:09 pm

The video uploaded helps, https://www.youtube.com/watch?v=69MQlU2r9k0

Unfortunately, there is no sound on the video, but I gathered the automatic mode allows the import of scripts for function.

Where can I find the script txt files for reading, erasing and writing on DS2431?


Regards

ArT
Posts: 1512
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 52 times
Been thanked: 161 times

Re: DS2431 erasing issue

Postby ArT » Tue Feb 27, 2024 10:08 am

Here you have examples, you may need to modify it to your needs.

If you need, you can use one script before DS2431 and one after DS2431 as presented on video.
If you write me what would you like exactly achievie, I'll try to help, for example with automation mode you can do with one click:
- write DS2431 memory with your bin file
- execute script which will overwrite protection registers with your values.
But you can also do the same thing with single script, without automation mode - just connect WriteData and WriteRegisters to single script.
Attachments
RPscript_1wire_DS2431_WriteRegisters.txt
(1.23 KiB) Downloaded 12 times
RPscript_1wire_DS2431_Read.txt
(689 Bytes) Downloaded 10 times
RPscript_1wire_DS2431_Read_ProtectionControlBytes.txt
(541 Bytes) Downloaded 11 times
RPscript_1wire_DS2431_ReadRegisters.txt
(714 Bytes) Downloaded 12 times
RPscript_1wire_DS2431_WriteData.txt
(637 Bytes) Downloaded 11 times

rsm
Posts: 8
Joined: Thu Feb 15, 2024 3:42 am
Has thanked: 8 times

Re: DS2431 erasing issue

Postby rsm » Tue Feb 27, 2024 9:06 pm

Thank you for the reply again,


First, I need to read the whole chip: data memories, protection control bytes, etc ... basically from 0000h to 0087h (0088h to 008Fh is not readable, is it?). Once read, I need them saved in .bin or any format.

The file "RPscript_1wire_DS2431_Read.txt" seems to be for DS2430. can you please check? "RPscript_1wire_DS2431_ReadRegisters" seems to be good for address 80h-87h.

How I should run these two files and save the data in the Revelog program? Im confused between automatic and script windows now.




Regards

ArT
Posts: 1512
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 52 times
Been thanked: 161 times

Re: DS2431 erasing issue

Postby ArT » Wed Feb 28, 2024 9:41 am

It's for DS2431, only comment is wrong.
Would you like to save it to single file? Usually EEPROM is separate file and control registers is other file (it needs 2 operations for read) but if you need it in single operation it's no problem, I prepared you script for reading all area.

PS. 88h to 8Fh are reserved bytes, it's not used for DS2431.
Attachments
RPscript_1wire_DS2431_ReadAll.txt
(1.3 KiB) Downloaded 10 times

rsm
Posts: 8
Joined: Thu Feb 15, 2024 3:42 am
Has thanked: 8 times

Re: DS2431 erasing issue

Postby rsm » Wed Feb 28, 2024 12:43 pm

Perfect Arthur!!

Now I need to write-protect the data memory page 0 (0000h to 001Fh).

Once write-protected, is it possible to deactivate the write protection, rewrite data memory and write-protect them again?

Regards

ArT
Posts: 1512
Joined: Wed Mar 25, 2015 8:54 am
Location: Warsaw, Poland
Has thanked: 52 times
Been thanked: 161 times

Re: DS2431 erasing issue

Postby ArT » Wed Feb 28, 2024 2:44 pm

Based on datasheet, it's working like OTP, so when you protect it, you can not change it anymore:
Once programmed to AAh or 55h this address becomes read only. All other codes can be stored, but neither write protect
the address nor activate any function


Return to “Tutorials and Examples”

Who is online

Users browsing this forum: No registered users and 7 guests