I write a program to set the time of DS1337. Then read the time. But when read even after several minutes , the time is not changed. I'm using AVR studio 5 and gcc compiler.
What are the possible errors of not changing the time. Further I set OSF and EOSC bits in DS1337. But nothing happend.
You read the last value you registered, or you read gibberish? This is important to be clarified.
Did you make sure that the problem is a frozen clock? No way for a read procedure problem, or a buffering error?
Did you check that all IC and crystal connections are OK and that no short circuit exists on the read line?