ds1307 problem with 8051

Status
Not open for further replies.

hassan ali

Member level 2
Joined
May 18, 2010
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
egypt
Activity points
1,667
hi, i have build my own program (interfacing 8051 with ds1307) but i want to do this steps:
lets say that the day now is 21/5/2011 so i want from ds1307 to get the micro controller a pulse output from rtc after 3 days
i.e: at day 24 i want to get pulse from rtc how can i do it using square output pin in rtc, please answer me .
 

you can set the SQWE bit in control register of 1307 when the date is 24. and disable it again.
but it is easier to implement this on 8051 side (i.e compare the day variable with preset and set port bit to 1 if equal, delay, and set to 0 again)

good luck
 
I tried to do it but i can't , because i want to update the value 24 each 3 days and send a clock pulse again, but i can't do it
 

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…