Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

DS1337 RTC Problem

Status
Not open for further replies.

MD_Landis

New Member
I am using a DS1337 (Not the C version) and facing a weired problem.

As per the DS1337 data sheet, whenever the second register is gets updated then the internal counter gets reset and there will a 1sec to complte the remaining time values write into RTC(min, hour,sec..).

But it is not happening like that... when ever i writes a time into RTC(for example 1hour 30min and 59sec) sometimes the seconds value is drifted into 00.

Due to this behaviour,the RTC time is drifted 1min less(1:30:00) than the actual time..

Any thoughts?

Thanks
 
Are you writing the registers in 1 burst so that there is only 1 stop bit after all bytes have been transferred. Note a restart is counted as a stop bit.

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top