Real time clock ICs


Closed Thread
Results 1 to 40 of 67

Hybrid View

  1. #1
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Default i asked a professor

    He said that i should keep on clearing the PIC in order to make time advance...

    i dunno what does this mean but there is no "CLEAR" port on the 16f628A datasheet......

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I will check later in the day when I have a few minutes spare... some of us have more important commitments and have to work for a living too...

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I have downloaded the MN1307 program from the MeLabs website.

    I have breadboarded the hardware and wired it per instructions with the exception that I've wired the LCD using DB4 thru 7 rather than DB0 thru 3.

    I have run the program.

    I have verified that it works as advertised.

    I have posted proof here that it works. I have an MPEG video of it ticking away... you want me to email that you?

    I don't post programs that don't work.

    Now your problem...

    It doesn't tick, then the software is just a simple loop that reads the RTC and displays the results on the LCD... this means your RTC isn't working. Also, if on initial first-time power-up it doesn't immediately jump into set-up, then that tells me the RTC isn't communicating with the PIC.

    so...

    1. Verify that SCL and SDA are wired correctly and you haven't swapped them over and you've not got any shorts.

    2. Make sure you have pull-up Resistors on those pins. 10K will work, 4K7 with hindsight is probably better.

    3. Make sure you have a Battery Connected.

    4. If you haven't got a Battery, then connect the Battery pin to Vss.

    5. Make sure your 32kHz Crystal is connected - and it's a good one. Steal one from your average genuine 99-cent Rolex wristwatch if you have any problems.

    6. Ensure you have a good RTC chip.

    If it still doesn't work, go back to step 1 and start over.

    ...i'll pass a whooooooole month in the Carribean!
    Hurry back, because we're all going to miss you when you're gone...
    Attached Images Attached Images  

  4. #4
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Talking Dear Melanie

    Quote Originally Posted by Melanie
    Hurry back, because we're all going to miss you when you're gone...
    __________________________________________________ ______________

    You know?

    i always have found your replies cool. You seem too much easy going and from the calm type.This is wonderful!

    till now, i'm still thinking about that 99 cents watch! From where do you bring all those stupid jokes?

    Keep on the good job!

    Here we reached more than 1000 people who checked this thread! is it enough or we make them 2000?

    Best regards.... ;-)

  5. #5
    Early1's Avatar
    Early1 Guest


    Did you find this post helpful? Yes | No

    Smile

    Thirty years ago when I was in the same position as Eng444, at University working on projects for my Bsc in Civil Engineering, I used a stop watch.

    A mechanical one at that.

    I am realy intrigued as to why any one has gone to so much trouble to re invent the wheel, or egg timer in this case.

    I work in instrumentation and RTC are used extensively because we need to log data with a time and date stamp, and if I was going to build a data logger then I would use a RTC, but then I would not build one because I can buy a very good tested and reliable datalogger for £240.

    Puzzled

    Steve

  6. #6
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Steve

    It's 23:58:43 on 28th February... You need a three-minute egg... you're in a panic because PAUSE 180000 exceeds a WORD variable. Do you stop the clock at 12:01:43am or at 00:01:43, and will it be on the 29th February or on the 1st March? Deep down, you KNOW the DS1307 was built by Maxim/Dallas just to provide you with these very answers.

    Melanie

Similar Threads

  1. real time clock
    By maria in forum Code Examples
    Replies: 44
    Last Post: - 1st March 2022, 13:13
  2. Real Time Clock
    By in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd June 2012, 05:52
  3. real time clock - PCF8583
    By maria in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th April 2010, 16:41
  4. Real Time Clock
    By savnik in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th December 2006, 03:02
  5. Real time clock... what a headache!
    By Eng4444 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 8th June 2006, 22:56

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