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...
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...
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
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 negativewhich 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 problemthanks so much guys
Last edited by ross246; - 16th June 2011 at 19:01.
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...
Bookmarks