Hi palreddyanurag,
You are right, I was in a frustrated state because I am trying to interface and run this IC for a past 4 days. I had in my mind that, I run the circuit successfully in Proteus then I would not face any problem in breadboard also.(except the 'ACK' signal that Proteus neglects). But I forgot than Proteus adjusts everything for proper running any integrated circuits,where we have to manually look for all of the working conditions.
As now, I solved the problem.
The main thing that I missed was to apply proper power to the DS1307. I was using the 7805 IC to reduce my general purpose 9V Battery voltage to 5V. But I observed that the voltage out from 7805 is 4.98v.
So i adjusted 7805 to give it 5.12v. And also connects the 1uF capacitor to power pin no.8 of DS1307.
After doing that I run it successfully!!:shock:.
But thanks for replying.
And also thanks for code, I really need it.