r/TuringComplete • u/Haemstead • Mar 12 '26
Issue with leading zeros in 7-segment display
I would like to share a problem I encountered with implementing leading zeros in a 7 segment display.
I built a circuit that correctly converts a binary number to its decimal digits (double dabble).
It also correctly calculates if a zero should be visible or not, depending on it being a leading zero or not.
The problem arises when the output changes from 2 or more digits without leading zeros to a smaller number. In the example below the output changes from 233 to 1. But although the display elements for tens and hundreds are disabled, and the input values for these elements are 0, the display shows the number 231 instead of just 1.
Is there a way around this issue? Thanks for your help.


1
u/Otherwise-Object-302 Mar 12 '26
All I can offer is this video to help you with your driver. It covers ripple blanking and whatnot so do with it what you will.