Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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 .
 

erio

Full Member level 3
Joined
Feb 26, 2008
Messages
176
Helped
27
Reputation
54
Reaction score
23
Trophy points
1,298
Location
Indonesia
Activity points
2,166
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
 

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
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top