Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

RTC problem interfacing ds1307 with pic18f4520 using C18

Status
Not open for further replies.

dinhvanhoabk

Newbie level 3
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top