Microcontroller › 8051 › DS1307, 7 segment and 8051 problem
- This topic has 7 replies, 3 voices, and was last updated 11 years, 3 months ago by
eng was.
-
AuthorPosts
-
September 30, 2014 at 8:32 pm #3282
eng was
ParticipantHello
I build a digital time and date clock using 8051, DS1307, 74595 and 7 segment, i write a code for multiplexing 7 segment and get the DS1307 code from net. the problem that i have that 7 segment blink. i measure the duration for get time and date from DS1307 is more than 130ms and the time for display the info on 7 segments is about 4 ms so i need help to minimize the time of fetching time and date.Thanks in advanced
October 1, 2014 at 5:43 am #12245AJISH ALFRED
ParticipantHi,
I wonder why would you require to further reduce the time delay of reading and display! The DS1307 will update the values in its register every one seconds only ( 1 second = 1000 ms ), That means you have more than enough time to do the reading and display with 134ms delay before the DS1307 updates a value.
October 1, 2014 at 4:45 pm #12250eng was
ParticipantThanks AJISH ALFRED for reply
I use in main
DisplayTimeToSeg(Get_DS1307_RTC_Time());
DisplayDateOnSeg(Get_DS1307_RTC_Date());this take 130 ms
i understand from your reply that i make loop display the date and time and get the Time and date from DS1307 every 1 sec once so my question is that this 130 ms when i fetch the new time and date the 7 segment did not effect by this time
Thanks again
October 2, 2014 at 5:52 am #12253Ashutosh Bhatt
Participantyou have to adjust all loop delays such that time displayed and refreshed on LCD after 1 sec. if fatching data from DS1307 takes 134 ms, you have to adjust other loop delays to generate delay of 866 ms
October 2, 2014 at 7:48 pm #12256eng was
ParticipantHi
I make a loop to do that, but in Proteus simulation i see simple blink in 7 segment every few seconds and see some number like 6 instead of 2, what can i do to get steady display
and if i use interrupts what can i do to make the 7 segment that what to adjust time in it blinking
i use 7 segment not LCD
Thanks
October 2, 2014 at 8:54 pm #12257eng was
ParticipantDears
I have also problem in the LED that display PM time it blinking
October 3, 2014 at 6:56 pm #12258eng was
ParticipantDear
7 segment work OK now but the led that indicate the PM not work ok i connect it to 74595 output as the 7 segment
I need help on blinking two 7 segment and other stable when i adjust time or dateThanks
October 3, 2014 at 7:55 pm #12259eng was
ParticipantDear
the new code is fetch date and time from DS1307 once every seconds for few ms then display it in 7 segment for the rest of seconds but i notice a very simple blink in 7 segment
Why the led that indicate the PM not work ok i connect it to 74595 output as the 7 segmentKindly need help
-
AuthorPosts
- You must be logged in to reply to this topic.