- This topic has 7 replies, 3 voices, and was last updated 9 years, 11 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › DS1307, 7 segment and 8051 problem
Hello
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
Hi,
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.
Thanks 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
you 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
Hi
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
Dears
I have also problem in the LED that display PM time it blinking
Dear
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 date
Thanks
Dear
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 segment
Kindly need help