I am interfacing the RTC DS1307 by simply writing and reading to that IC and displaying what i read on an LCD. When i run the simulation on Proteus, the RTC does not get written on nor does it read the correct time, it just read 00:00:00 PM. Now i am guessing this is a problem with the I2C protocol because when i plug the I2C Debugger i get thousands of errors: "Spurious SCL transition detected" and some random time is displayed.
I hope the problem is from some kind of bit that I should enable on some register so that the MCU is informed that I am using an I2C protocol. Below is the code and attached is the Proteus file.
Thank you.
This is a very frequently discussed topic.
With many good informations, software, libraries explanations and so on.
Please do a forum search, I'm sure the solution is already here. Everything. Setting up correctely I2C interface, communicate with RTC, write to display..
In case you don't have success, then show us your I2C functions.