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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.