Multiplexing 7-Segment


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Default Re: Multiplexing 7-Segment

    Hi,

    I think you need to switch the port b off before going to set the segments, when you enable your port b the segments are briefly set to the previous number.

    Regards
    Bob...

  2. #2
    Join Date
    May 2010
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Multiplexing 7-Segment

    By switching off you mean assigning it %00000000 or in my case %11111111 since it is a common cathode display?

    I tried that out and still nothing, I also tried adding a small pause between selecting the other display and its still creating "shadows". Now that it is dark I see that it is doing it on all 3 segments. All "shadowing" the previous one.

    Thanks for your reply

  3. #3
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default Re: Multiplexing 7-Segment

    Quote Originally Posted by ross246 View Post
    By switching off you mean assigning it %00000000 or in my case %11111111 since it is a common cathode display?
    For common cathodes, wouldnt you need to assign 0's to the segments to blank them?

  4. #4
    Join Date
    May 2010
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Multiplexing 7-Segment

    Common cathode is common negative or ground so by assigning it 0's your making it negative so switching it on

    EDIT: assigning the cathode itself negative which is connected to portb, by assigning the segments (portc) 0's yea that would blank them.

    Ah by clearing portc which is connected to the segments i have solved the problem thanks so much guys
    Last edited by ross246; - 16th June 2011 at 19:01.

  5. #5
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Default Re: Multiplexing 7-Segment

    Hi Ross,

    Glad you got it to work. Now you can move on to not displaying any leading zero's.
    Very nice code by the way, much more efficient than what I came up with a few years back.

    Regards
    Bob...

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