EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / DS1307, 7 segment and 8051 problem

DS1307, 7 segment and 8051 problem

|

Microcontroller › 8051 › DS1307, 7 segment and 8051 problem

  • This topic has 7 replies, 3 voices, and was last updated 10 years, 8 months ago by eng was.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 30, 2014 at 8:32 pm #3282
    eng was
    Participant

    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

    October 1, 2014 at 5:43 am #12245
    AJISH ALFRED
    Participant

    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.  

    October 1, 2014 at 4:45 pm #12250
    eng was
    Participant

    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

    October 2, 2014 at 5:52 am #12253
    Ashutosh Bhatt
    Participant

    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  

    October 2, 2014 at 7:48 pm #12256
    eng was
    Participant

    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

    October 2, 2014 at 8:54 pm #12257
    eng was
    Participant

    Dears

    I have also problem in the LED that display PM time it blinking

    October 3, 2014 at 6:56 pm #12258
    eng was
    Participant

    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

    October 3, 2014 at 7:55 pm #12259
    eng was
    Participant

    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

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Is AI making embedded software developers more productive? June 22, 2025
  • Can I make two inputs from one?? June 21, 2025
  • Behlke swich June 21, 2025
  • Beats Solo 4 June 21, 2025
  • Simple LED Analog Clock Idea June 21, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise