PIC and RTC DS1307 problem - hardware vs software ?


Results 1 to 15 of 15

Threaded View

  1. #1
    Join Date
    Nov 2004
    Posts
    25

    Lightbulb PIC and RTC DS1307 problem - hardware vs software ?

    Hi everyone ( specially Melabs PBP PROīs )

    i ve almost a two years old project that suffers from specific a RTC problem that i ve been unable to workaround .. All the RTC program routines and PIC code are working ok and this only happens once in a while. Capacitors on power leads ( 10uf) and system gets power from a standard SMD LM7805 with 100uf !! capacitors.
    Standard DS1307 to PIC ( from manufacturer app note) schematics used.

    The problem is that from time to time (without any specific reason – noise I guess… ) the dallas RTC DS1307 getīs all it īs internal data corrupted and i ve to program it again with valid clock and date settings.
    Fist I manage to insert an auto-routine that when detect that no valid data was inside the RTC anymore it would program it with the manufacture date and alert the user to set date/time again asap.
    This would be fine, but creates another problem….until the user sets the current clock&date again, all the data after the this “auto-date” solution must be cross reference to the last valid RTC reading to extrapolate the actual date of the recordings of all the probes values… ( otherwise all the new values are referenced / starting based in the manufactured auto start date)

    Last note: the DS1307 battery is assembled and in good condition all the times.


    So, my question(s) are:

    -i know that the DS1307 can suffer from similar problems in noisy conditions or when a bad write command is given and gets interrupted ( which doesn’t seem to be the case), but can I ve any hardware solution or a cleaver software workaround to this ?

    - Any of you PROīs had any similar problem with the DS1307 RTC and/or have any “advice” in terms of schematics?

    Thanks in advance for any help !:-)

    Any advice or information would be really good.

    Regards,
    Jorge
    Last edited by jorge; - 5th April 2011 at 23:12.

Members who have read this thread : 2

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