ds 1307 revisted


Results 1 to 10 of 10

Threaded View

  1. #5
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Jack,

    1. The DS1307 needs a crystal with a 12.5pf load. That part # is DigiKey SE3201-ND or SE3202-ND or SE3203-ND. The difference between them is physical size with the 3201 being the largest and the 3203 being the smallest and the more expensive. 3201 and 3202 are $.27 in single lot and the 3203 is $1.38 single lot. You can find them on page 1135 of their current catalog.

    2. RTCsec came from the MN1307 program. You have your "secs" register which is the same thing.

    3. If I were you, at this point, I would strip the program down and only put the LCD items in there first, make sure the LCD works, then I would add just the clock stuff. I have attached a DS1307 program I got off of another PIC group. I do believe our own Darrel Taylor was a part of the discussion on getting the clock chip to work. When you look at this program you will see that there are RTC register assignments as constants. You don't seem to have them in what you posted here. This may be part of the problem. This listing I have attached is very close to what I have for my DS1337 program. Try this program just with the LCD portion of your program and see if it doesn't get you going. You shouldn't have to make any pin assignment changes. SDA and SCL are the same pins.

    You can set the time values to your current time, just make sure the secs are set to $00.

    You're having fun.... you just don't know it. This programming stuff is frustrating as all hell but once you get it to work you won't forget it!

    HTH,

    BobK
    Let me know how this works for you.
    Attached Files Attached Files

Similar Threads

  1. 1307 RTC accuracy?
    By amgen in forum General
    Replies: 16
    Last Post: - 6th October 2008, 19:03
  2. Need help PIC 18F2550 with DS 1302
    By christina86 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 28th December 2007, 02:05
  3. ds 1307
    By jcleaver in forum mel PIC BASIC
    Replies: 2
    Last Post: - 30th June 2007, 13:28
  4. ds 1307
    By jcleaver in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 5th February 2007, 17:09
  5. DS 1620 Code example?
    By G-R-C in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th September 2006, 03:45

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