DS1307 RTC Problem
Posted: Sun Jun 02, 2013 9:14 pm
Hi,
I connected up a DS1307 RTC to a 16F8ffA as per the following discussion thread:
viewtopic.php?f=29&t=8607&p=46788&hilit=rtc#p46788
I am managing to download the code to the 16F887A and I get the LCD displaying "DS1307 programmed", but when I do a read to obtain the date, I just get zero's displayed for the date. I am not sure if the DS1307 is actually being programmed. How can test if the pic is actually communicating with the DS1307.
DS1307 is connected to PORTC, LCD to PORTB. I am running the DS1307 RTC Programmer code by John, and using his read routine to read from the DS1307. I am also running the Keypad version of the code by Enamul and getting the same result.
I am using the DT-26 oscillator. Is this the correct one for the RTC? Can somebody perhaps suggest the correct oscillator to use (part number).
Thanks.
I connected up a DS1307 RTC to a 16F8ffA as per the following discussion thread:
viewtopic.php?f=29&t=8607&p=46788&hilit=rtc#p46788
I am managing to download the code to the 16F887A and I get the LCD displaying "DS1307 programmed", but when I do a read to obtain the date, I just get zero's displayed for the date. I am not sure if the DS1307 is actually being programmed. How can test if the pic is actually communicating with the DS1307.
DS1307 is connected to PORTC, LCD to PORTB. I am running the DS1307 RTC Programmer code by John, and using his read routine to read from the DS1307. I am also running the Keypad version of the code by Enamul and getting the same result.
I am using the DT-26 oscillator. Is this the correct one for the RTC? Can somebody perhaps suggest the correct oscillator to use (part number).
Thanks.