Jump to content
43oh

DS1307 RTC + EEPROM from eBay - possible unreliable operation


Recommended Posts

If you have a module like this...

 

post-229-0-31145800-1374044583_thumb.jpg

 

and it is unreliable or not working at all, here is a possible fix.

 

- Remove battery

- Remove D1, R6 and R4

- Solder jumper wire in place of R6

- Inspect crystal soldering - fix if necessary

- Replace battery

 

The module should now work properly. It requires 5V power, but will work with 3.3V logic.

 

The DS1307 can be replaced with the newer pin compatible DS1338 for operation from 1.8V to 5V, or the TI BQ32000 for 3.3V (only) operation.

 

---

 

The battery backup circuit on these modules is of poor design. D1 and R5 provide a charging current to the CR2032 coin cell. Lithium primary cells such as the CRxxxx series should not be (re)charged. Removing D1 fixes this.

 

R4 & R6 create a voltage divider between the battery and the DS1307. This raises the source impedance (spec sheet warns against this) and increases the current draw from the battery. The voltage divider was necessary because the battery voltage would float at about 4.2V volts due to the D1/R5 circuit! That would keep the DS1307 disabled if present on the Vbat pin. Replacing R6 with a jumper allows the full battery voltage to Vbat.

Link to post
Share on other sites

There are 3k3 pullup resistor to 5V. So there will be about 300 microamps current flow thru each of two of the ESD protection diodes in the MSP430. This will usually not cause problems as long as there is something on the MCU's supply rail to sink this current. If the MSP430 is running at 1MHz or more and not sleeping, then it will use that current. Adding 6k8 pulldown resistors to SDA and SCL would reduce the voltage to about 3.3V and prevent current flow thru the ESD diodes.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...