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
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: 137

Hi,

I think you have to configure the control register properly.

Thank you
 
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: 105
  • i2c.c.txt
    1.2 KB · Views: 106
  • ds1307.h.txt
    529 bytes · Views: 125
  • ds1307.c.txt
    3.3 KB · Views: 119
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top