I am facing a problem with ds1307. I made a cirucuit to display date and time on 16x2 lcd display using pic16f877a. Its working perfectly well but when power supply goes, ds1307 is not keeping its time, I connected 3V battery to ds1307 as per its datasheet. Can any body help me regarding this problem.