-->
Page 2 of 4

Re: write & read DS1307 eeprom using esp8266

PostPosted: Wed May 24, 2017 8:29 am
by m.maazi
Now I got it!
So I've been trying to write to DS1307 memory till now...
Is this why I failed to set my clock while writing to that memory?!
I need to know my eeprom address. Could you please tell me how to find it?
This is my module:
https://www.banggood.com/Tiny-RTC-I2C-A ... 90137.html
Is there any difference between ports on each side? and if there is, Which side is for eeprom?
I really appreciate your help. Thanks.

Re: write & read DS1307 eeprom using esp8266

PostPosted: Wed May 24, 2017 11:12 am
by martinayotte
As I've said, those have 2 separate I2C buses, and they are not connected together.
You have to connected them together yourself.
I2C address of most of AT24Cxx is 0x50.
I strongly suggest to download PDF specs of both chips.

Re: write & read DS1307 eeprom using esp8266

PostPosted: Wed May 24, 2017 11:31 am
by m.maazi
Everything up & running. Thanks again.
Just one small problem:
How should I erase eeprom? I mean with programming.

Re: write & read DS1307 eeprom using esp8266

PostPosted: Thu May 25, 2017 9:10 am
by martinayotte
Unlike Flash which need to be erased or page-erased before writing, EEPROM doesn't have such limitation, so you can write them directly. If you still wish to erase the content for security reason, simply write zeros all over the places.