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...
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
Re: Multiplexing 7-Segment
Quote:
Originally Posted by
ross246
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?
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
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...