RTC Clock - Resetting


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,696


    Did you find this post helpful? Yes | No

    Default Re: RTC Clock - Resetting

    some rtc's power on reset to a set value eg ds1307 power on default is 01/01/00 01 .
    you can look for this value when your pic powers up and if its something else then assume the time is still set and leave it as it is.


    extract from the ds1307 data sheet

    On first application of power to the device the time and date registers are typically reset to 01/01/00 01 00:00:00 (MM/DD/YY DOW HH:MM:SS). The CH bit in the seconds register will be set to a 1.

  2. #2
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: RTC Clock - Resetting

    Are you using a battery backup on the RTC that is isolated from the rest of the power supply?
    Louie

  3. #3
    Join Date
    Sep 2005
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: RTC Clock - Resetting

    Hi Louie,

    Yes I am connecting as per the datasheet, I am using a DS1302

    Regards,

    gavo

  4. #4
    Join Date
    Sep 2005
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: RTC Clock - Resetting

    Hi Richard,

    I seem to be doing everything correct, I even had MAXIM have a look at what I was doing, and they said it all looked good, that is why I am at such a loss having to program the device twice

    Regards,

    gavo

Similar Threads

  1. Resetting a timer in VB6
    By Bruce in forum Off Topic
    Replies: 11
    Last Post: - 26th December 2013, 21:02
  2. PIC18F2220 I2C resetting
    By cpayne in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th October 2010, 00:09
  3. PIC keeps resetting when executing subroutine
    By jbirnsch in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 27th August 2009, 08:03
  4. PIC chip resetting. Very weird
    By The Master in forum Off Topic
    Replies: 0
    Last Post: - 28th October 2007, 18:07
  5. Pic resetting
    By malc-c in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st January 2007, 22:00

Members who have read this thread : 0

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