Apr 12, 2013 #1 D dinhvanhoabk Newbie level 3 Joined Apr 12, 2013 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,296 Hi Friends, I am trying to interface a DS1307 with PIC18F4520. porblem is read_ds h=0,m=0,s=0 help me please, and thank you Attachments rtc_hoabk.zip 61.6 KB · Views: 104
Hi Friends, I am trying to interface a DS1307 with PIC18F4520. porblem is read_ds h=0,m=0,s=0 help me please, and thank you
Apr 12, 2013 #2 S Seetha09 Newbie level 6 Joined Jun 7, 2011 Messages 14 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,283 Activity points 1,361 Hi, I think you have to configure the control register properly. Thank you
Apr 12, 2013 #3 babar_ali Full Member level 2 Joined Dec 22, 2010 Messages 148 Helped 37 Reputation 74 Reaction score 35 Trophy points 1,308 Location Friedrichshafen, Germany Activity points 2,088 Hi, Find the attached code files for ds1307 RTC IC and I2C interface for pic18f252. It is written in Hitech PICC. To use change the extensions, headers and include files. Enjoy! Attachments i2c.h.txt 1.6 KB · Views: 68 i2c.c.txt 1.2 KB · Views: 72 ds1307.h.txt 529 bytes · Views: 89 ds1307.c.txt 3.3 KB · Views: 79
Hi, Find the attached code files for ds1307 RTC IC and I2C interface for pic18f252. It is written in Hitech PICC. To use change the extensions, headers and include files. Enjoy!
Apr 14, 2013 #4 D dinhvanhoabk Newbie level 3 Joined Apr 12, 2013 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,296 thank you so much!