RTC problem interfacing ds1307 with pic18f4520 using C18

Status
Not open for further replies.

dinhvanhoabk

Newbie level 3
Joined
Apr 12, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
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: 143

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: 110
  • i2c.c.txt
    1.2 KB · Views: 112
  • ds1307.h.txt
    529 bytes · Views: 129
  • ds1307.c.txt
    3.3 KB · Views: 125
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…