Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/13/09 13:39
Read: times


 
#165298 - Page 4, Figure 3 shows Day is 1..7
Responding to: ???'s previous message
Munish Kumar said:
Hi all,

I wanted to know what day does it represent if you read 01 from the location 03 (which is the day of the week register) in DS1307. Nothing meintioned in Dallas datasheet. For instance, in 12887, it is Sunday, according to datasheet.

I suppose it's Monday in 1307, because when I simulated in proteus, it was reading Wednesday (acc. to PC time) as 03.

Kindly Confirm!

-Regards,
Munish


The PCF8583 uses 0..6 for day of the week
The DS1307 uses 1..7

As far as I can remember if you use an char *dayname[8] = {"Sun", "Mon", ... ,"Sun"}; then it will work for both chips. e.g. Sunday is either 0 or 7.

It does seem a relatively simple thing to work out for yourself.

David.

List of 3 messages in thread
TopicAuthorDate
Starting day in DS1307 RTC ?            01/01/70 00:00      
   Does it matter?            01/01/70 00:00      
   Page 4, Figure 3 shows Day is 1..7            01/01/70 00:00      

Back to Subject List