PIC16F887 and DS1307


Results 1 to 22 of 22

Threaded View

  1. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by menta View Post
    I've been reading all posts here regarding the DS1307 RTC, but I really can't get it to work.
    I just get the value '0' when trying to read it.
    Is soething in my code is wrong ?
    A quick search on DS1307 will get you a long way. But since your SEARCH function seems to be broken, I'll show you use mine.
    http://rentron.com/PicBasic/SERLED.htm
    No, this code isn't 100% perfect for what you need, but I'll bet ANYTHING that you can easily modify for your purposes.

    And besides, why are you trying to set the same time that you're trying to read?
    If the set time is zero and the read time is zero, then it seems to me that your program, if that is the whole program, is working correctly.

    Got any pullups on the I2C lines?
    Last edited by skimask; - 26th June 2008 at 20:02.

Similar Threads

  1. Pic16f887 vs ds1307
    By larzazral in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th January 2010, 04:12

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