How to display many informations on 6 digits?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Mihai Popa View Post
    Hello. I am new here.
    Please help me with this: I want to make a clock with DS1307 and displaying information about the time and date on a display of six digits. I would like for a while, let's say 5 seconds, only to tear the clock, then for the same period, to display the date. And resume the process.
    Mihai Popa,

    If you have a little info and knowledge of programming, you can come up with your own code, design and finally a working system from this forum in about a week even without asking much about it.

    There are so many similar projects of yours here at this forum.
    Dig in.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    Join Date
    Apr 2010
    Posts
    8


    Did you find this post helpful? Yes | No

    Default How to display many informations on 6 digits?

    Hello.
    We're back with the code and electrical diagram made in Proteus.
    My problem is that I want to toggle between showing the label "afisare_ceas" and labeled "afisare_data." Range of hits to be about 5 seconds.
    Attached Files Attached Files

  3. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    I have one older version of Proteus. Please post the schematic in graphic format (.jpg).

  4. #4
    Join Date
    Apr 2010
    Posts
    8


    Did you find this post helpful? Yes | No

    Default How to display many informations on 6 digits?

    Schematics.
    Attached Images Attached Images  

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Looks to me like you're multilpexing the display, right?

    Have loop counter variable incremented each time you get to the citeste_RTC routine. After reading the DS1307 you look at this loop counter and if it's less than say 10000 (or whatever) you jump jump to the routine displaying the time, if it more than 10000 you jump to the routine displaying the date. If it hits 20000 (in this case) you reset it to 0 and the whole thing starts over.

    /Henrik.

  6. #6
    Join Date
    Apr 2010
    Posts
    8


    Did you find this post helpful? Yes | No

    Default How to display many informations on 6 digits?

    Hello.
    You are right.
    But, how write a code?
    thanks

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Something like this:
    Code:
    Counter VAR WORD
     
    Read1307:
      'code for reading time and date here....
     
    Counter = Counter + 1
    If Counter > 2000 then Counter = 0
    If Counter < 1000 Then GOSUB DisplayTime
    If Counter > 1000 Then GOSUB Display Date
    Goto Read1307
     
    DisplayTime:
      'code for time here
    RETURN
     
    DisplayDate:
      'code for date here
    RETURN
     
    END
    Now have a go at it, if it doesn't work post your code and we'll have a look at it again.

    /Henrik.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts