Trouble with DS1307 battery backup


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198

    Default Trouble with DS1307 battery backup

    I am currently working with a DS1307 RTC ('877A and I2C). All is well reading, writing, and displaying result to a typical LCD. The difficulty comes when using a battery (2032 Lithium coin) to backup the clock. Insert the battery, the display flashes: 04:04:04; remove it, time returns to accurate display and advance. Re-insert battery, display reads: 04:04:04... Its quite a fun game, but not very efficient way to keep the time. I've checked the voltage of the battery, wiring, and everything else I can think of - as well as tried some basic filtering. I've searched Google for any known issues and found nothing... Anyone can advise?

  2. #2
    Join Date
    Feb 2011
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Trouble with DS1307 battery backup

    A schematic showing DS1307, never had trouble except once when a circuit mistake overheated the voltage supply and the clock with battery gave similar data.

    http://www.harbornet.com/sunflower/PCB.jpg

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: Trouble with DS1307 battery backup

    Very likely a wiring problem. Did you place two diodes to isolate the battery from power?

    You can have more help if you post the schematic.

    Cheers

    Al.
    All progress began with an idea

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Trouble with DS1307 battery backup

    Quote Originally Posted by aratti View Post
    Very likely a wiring problem. Did you place two diodes to isolate the battery from power?


    Al.
    You do not need your suggested diodes - if you look at the data sheet the backup battery has its own pin, and the battery should be connected to that and ground.

  5. #5
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Trouble with DS1307 battery backup

    I was thinking more like stray capacitance issues, or I2C resisters of wrong value (3K3)- something of that nature; maybe battery back-up voltage (3.32V) issue. Wiring the battery could hardly be easier and I've looked, until my eyes crossed, at the holder to be sure there was nothing wrong with it. I think I'll try a different battery, but I've already tried a different 1307 and a different 12.5 pF crystal, verified wiring- exact same result. Circuit is rock solid, just goes "404" on me when the battery is inserted.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Trouble with DS1307 battery backup

    What happens if you leave the battery inserted? Can you then reprogram the time?
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Replies: 13
    Last Post: - 22nd January 2012, 04:48
  2. Without resetting....Switching PIC over to Backup Battery
    By financecatalyst in forum Schematics
    Replies: 5
    Last Post: - 29th December 2010, 14:23
  3. Sampling A/C with battery backup.
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th April 2004, 20:39
  4. Battery backup with long delay
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th January 2004, 20:38
  5. Battery Backup with PIC controlling switch
    By Dwayne in forum Schematics
    Replies: 1
    Last Post: - 27th December 2003, 13:16

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts