Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

DS1307 don't automatically update of day of week?

Status
Not open for further replies.

codewiz

Member level 5
Joined
Sep 14, 2008
Messages
80
Helped
10
Reputation
20
Reaction score
8
Trophy points
1,288
Activity points
1,717
Hi.
I am new to using DS1307, though i have been able to make it work. But I thought after setting the date and time that the day of the week will automatically be set. it only changes at 12 midnight.
I want it to set the DOW anytime I do a new setting of date. Must i always set the day of the week?
Please, what do i do? help.
 

I haven't used it but I would assume you would have to set the day of week as well as date and time. RTC chips are simply counters so I wouldn't expect them to automatically calculate the day of week from a given date. If they did that then they wouldn't give you the option of setting the day of week as well.

Keith
 

Which processor you are using?
 

Which processor you are using?

I cannot see that is relevant.

Having looked at the datasheet now it is clear that the DS1307 does not and cannot calculate the day of the week given the date because the day is simply a number and how you interpret that number is up to you. You could choose the number 1 to mean Monday or Saturday, whatever you like. The DS1307 simply increments it at midnight without ever knowing what meaning you attribute to it.

Keith.
 
Thank you Keith.

I have to make do with that.
if i may ask, is there any RTC that could do the automatic day of the week calculation?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top