NILESH PATEL
Newbie level 3
Hi, Friends
My RTC clock program using 16F877A as master I2C and DS1307 and 2*16 LCD in ASSEMBLY works fine at actual hardware but when main 230volts A.C/5volt D.C is switched off and restarted then it re writes the time in related locations of DS1307 in RTC and then displays the time from starting and then works ok until 5 volts supply of MCU is again switched off means it restarts from beginning every time supply is switched OFF and ON.
I have provided separate 3 volt battery for DS1307 it is ok , but I Have not provided any stand by supply OR Battery provision for MCU.to continue working When 5 volts is switched off. Also I have not used SLEEP OR WAKE UP and I don’t know how to use theme and how to connect stand by supply to MCU in hardware and software both also.LCD should not glow during mains is off but I don’t know how to implement it.
So friends are requested to help to solve the problem to take a clock in actual working condition.
Thanks in advance.
My RTC clock program using 16F877A as master I2C and DS1307 and 2*16 LCD in ASSEMBLY works fine at actual hardware but when main 230volts A.C/5volt D.C is switched off and restarted then it re writes the time in related locations of DS1307 in RTC and then displays the time from starting and then works ok until 5 volts supply of MCU is again switched off means it restarts from beginning every time supply is switched OFF and ON.
I have provided separate 3 volt battery for DS1307 it is ok , but I Have not provided any stand by supply OR Battery provision for MCU.to continue working When 5 volts is switched off. Also I have not used SLEEP OR WAKE UP and I don’t know how to use theme and how to connect stand by supply to MCU in hardware and software both also.LCD should not glow during mains is off but I don’t know how to implement it.
So friends are requested to help to solve the problem to take a clock in actual working condition.
Thanks in advance.