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 following output:
12:??:23
SAT, ??-06-20??
After certain time even second counting also stops. And the output becomes:
12:12:??
SAT, ??-06:20??
On my 16x2 character LCD
It is not displaying Minutes,Day and Year.
I've attached demo video for proteus simulation, and zipped file(contains proteus design file and C program). I've been stuck about a month followed several online suggestions posted for others but cannot get any solution. I've not posted any question except this forum.
Please some one help.. I am loosing my hope to get in the field of embedded system..
hh:mm:ss
day, dd-mm-yy
When I run my project on real hardware i get following output:
12:??:23
SAT, ??-06-20??
After certain time even second counting also stops. And the output becomes:
12:12:??
SAT, ??-06:20??
On my 16x2 character LCD
It is not displaying Minutes,Day and Year.
I've attached demo video for proteus simulation, and zipped file(contains proteus design file and C program). I've been stuck about a month followed several online suggestions posted for others but cannot get any solution. I've not posted any question except this forum.
Please some one help.. I am loosing my hope to get in the field of embedded system..
Attachments
-
717.2 KB Views: 40