Blanking MS zero digit

Status
Not open for further replies.

AGCB

Member
I'm using a simple 2 digit multiplexing routine with 2 7-segment displays controlled by a 16f84a. It would look much cleaner if the most significant digit were blanked instead of displaying a zero. How is this done if it's posible? Thanks. Aaron
 
I don't understand but maybe I didn't give enough info. I'm counting switch closures with tmr0 and using digbyte macro to separate digits, then display on 2 7-segs. It would be nice if the tens digit was dark until it is needed (for that matter it would also be nice if the ones digit was dark at the beginning when no number is displayed).
 
Post a schematic and ill tell you what needs to be done. all you have to do is turn off the COM pin to both or one until its needed
 
if you can post code it will be a plus because i can quickly make a simulation and show you what i mean

Is it Common Anode or Common Cathode?
 
Last edited:
I guess I figured it out. Atomsoft's confirmation that it could be done and Nigel's few words got me to thinking. I did a comparison of the ms digit with zero and tested for the z flag. Thanks for your input!!!

This is a toy basketball portion of a treasure hunt game for my grandkids. When they make ten baskets the next clue is dropped and noise is made.

Aaron
 
I guess I figured it out. Atomsoft's confirmation that it could be done and Nigel's few words got me to thinking. I did a comparison of the ms digit with zero and tested for the z flag. Thanks for your input!!!

Pretty simple isn't it? - I did a similar thing for a number displayed on an LCD, added a flag you could set which caused it to blank all leading zero's, except for one on it's own.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…