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.

How do I setup ds1307 with PIC18F452?

Status
Not open for further replies.

vanvan00

Newbie level 6
Joined
Nov 13, 2009
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,366
How do i set up ds1307 with PIC18F452? i wanted to use ds1307 to display time on an lcd anyone help? thanks
 

Re: set up ds1307

i need to set it up using mikro c codes im sorry for the troubles. I'm using Port A for temperature sensor, Port B for LCD and left Port D for ds1307 to work with.
 

set up ds1307

Hi,
Your SCL and SDA lines for I2C are in PORTC, so if you want to use PORTD, use the software I2C library provided in mikroC. They have a code for RTC in the examples, but they use the PCF8583 RTC instead. Take a look there.
Take a look at the software I2C library and the links I provided. The first one should be very helpful.
https://picnote.blogspot.com/2008/06/ds1307-pic16f877a.html
Just where he used PORTC, use PORTD and use software I2C instead of hardware I2C.
Tahmid.
 

Re: set up ds1307

ok i shall use PORTC so does it mean i will load 2 programs separately in order for it to work? 1st set up then the main program?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top