Hi, I am trying to interface ds1302 RTC to 8051 microcontroller. I've successfully coded my AT89S51 microcontroller that interface with DS1302 rtc and it runs great in proteus. The main problem occur in real hardware. I don't know what happens may be i cannot write values to all registers of RTC or I cannot read value correctly in hardware. Software simulation in proteus works great. My output format in lcd is :
hh:mm:ss
day, dd-mm-yy
When I run my project on real hardware i get...
8051 DS1302 RTC Interfacing in C
hh:mm:ss
day, dd-mm-yy
When I run my project on real hardware i get...
8051 DS1302 RTC Interfacing in C