RTC chip not keeping time when powered off

Status
Not open for further replies.

aliyesami

Full Member level 6
Joined
Jan 7, 2010
Messages
369
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
USA
Visit site
Activity points
4,190
my DS1307 is not keeping time when powered off , it though saves the current time when powered which is wiered .
It simply continues from the point it left off .
I checked the pin 3 is getting 3.2V from a lithium battery as the datasheet is requiring .
and i am not setting any time in my code also if i had done that i would get same time all the time after power up but as i said it continues from the time I power it off.

thanks
 

read your blog , i am following all the guidelines there except its not on pcb its on breadboard but I know that can't be my issue as many many people are using RTC circuit on breadboard.
what about the CH bit ? it seems to best fit my problem.
 

Can you plz tell what you are doing in your code.
Also if you have some simulator available like proteus;you can check your code on it too.
 

its working now .. the issue was stray capacitence because of breadboard, the issue was fixed by soldering the crystal directly to the chip and putting a 0.01uf capacitor across VBAT - GND.
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…