Seven segment controller question - Is there a better way?


Results 1 to 6 of 6

Threaded View

  1. #4


    Did you find this post helpful? Yes | No

    Default Re: Seven segment controller question - Is there a better way?

    You said "the budget is paper thin." so usually 74HC etc stuff is cheaper than port expanders.

    When I scanned your expander and the new one, I see that there seems to be a lot of settings to be sorted, so I looked for an easier route, hardware and programming.

    The shift registers are easy to use, and the program is relatively straight forward.

    You store the binary patten of each digit in on board pic eprom starting at location 0, so you have 10 values (led patterns) there 0-9.

    you have your x=14 or whatever , THEORETICALLY 00014

    If you store that 5 into an array eg numbers(0) = 4 numbers(1) =1 and so on

    remember to send the least significant digit out first as that will be the far right hand on the display

    you then do a loop something like

    FOR COUNTER = 0 TO 4 ' 5 DIGITS
    pattern = numbers(counter)
    read patten , temp ' get the led patten into temp
    then shift out temp to the shift register
    next

    you now have all the segments for the 5 digits done

    with some extra programming you could make the leading "0"s be unlit.
    Last edited by aerostar; - 22nd August 2013 at 11:19. Reason: hit wrong key

Similar Threads

  1. Replies: 3
    Last Post: - 28th November 2011, 01:21
  2. Multiplexing 7-Segment
    By ross246 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th June 2011, 23:31
  3. Replies: 2
    Last Post: - 14th July 2008, 23:11
  4. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 15:44
  5. 7-Segment Driver
    By NavMicroSystems in forum Off Topic
    Replies: 0
    Last Post: - 13th April 2005, 15:50

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