Author Topic: How to read contents of PCF8570 SRAM  (Read 1377 times)

0 Members and 1 Guest are viewing this topic.

Offline giosifTopic starter

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: gb
How to read contents of PCF8570 SRAM
« on: March 03, 2019, 08:38:52 pm »
Hi all,

I am looking to replace the button cell battery that powers a Philips PCF8570 SRAM IC (part of a board from a PM5139 function generator).
The battery isn't dead, but don't know how much life it's got left in it, so I would like to put in a new one.
However, I would first like to back up the contents of that IC, just in case I end up cutting off power to it.
Any ideas how I could achieve that?
The trusty TL866 doesn't seem to support the said IC.

Thanks!
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8468
Re: How to read contents of PCF8570 SRAM
« Reply #1 on: March 04, 2019, 04:08:43 am »
I briefly looked over the service manual but it doesn't appear to mention calibration constants are stored in it. In any case, if it reads the contents upon power-up or entering specific modes, then a logic analyser connected to it should be able to capture the data. There's only 256 bytes, it's not very large.
 

Offline giosifTopic starter

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: gb
Re: How to read contents of PCF8570 SRAM
« Reply #2 on: March 04, 2019, 06:23:26 pm »
Thanks for that, but the product is the PM5139, not PM5193!
In any case, the idea with the logic analyzer still stands.
I guess I was looking for an easier (read "lazy") way.  :)

Thanks again!

I briefly looked over the service manual but it doesn't appear to mention calibration constants are stored in it. In any case, if it reads the contents upon power-up or entering specific modes, then a logic analyser connected to it should be able to capture the data. There's only 256 bytes, it's not very large.
 

Offline orbanp

  • Regular Contributor
  • *
  • Posts: 168
Re: How to read contents of PCF8570 SRAM
« Reply #3 on: March 04, 2019, 10:04:46 pm »
Here is the datasheet for the RAM in question:
https://www.nxp.com/docs/en/data-sheet/PCF8570.pdf

Here is an Arduino sketch for an I2C-scanner:
https://playground.arduino.cc/Main/I2cScanner

I am sure it would not take much to modify the code to read (and/or program) the content of the RAM.
It is also possible that there are other I2C sketches doing similar things, I did not look that hard.

Regards, Peter
 

Offline giosifTopic starter

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: gb
Re: How to read contents of PCF8570 SRAM
« Reply #4 on: March 06, 2019, 07:56:18 pm »
Thanks, Peter!

In the meantime, I read the user and service manuals and I'm pretty sure the SRAM stores only instrument settings, not calibration data.
In fact, the calibration is all analog (i.e. adjusting various trimpots).
That said, I'd still like to give it a try at reading the contents of the SRAM IC, even if just as an exercise for the next equipment that might store its cal data in a similar IC.

Cheers!

Here is the datasheet for the RAM in question:
https://www.nxp.com/docs/en/data-sheet/PCF8570.pdf

Here is an Arduino sketch for an I2C-scanner:
https://playground.arduino.cc/Main/I2cScanner

I am sure it would not take much to modify the code to read (and/or program) the content of the RAM.
It is also possible that there are other I2C sketches doing similar things, I did not look that hard.

Regards, Peter
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf