7 Segment Display Tearing: Keeping Multi-Digit Values Consistent
A four-digit meter shows 1999 for a moment, with the first two digits reading the new value and the last two still showing the old one. Nothing is broken and nothing is out of specification, yet the operator read a number that never existed. 7 segment display tearing is the name for that mixed frame, and it comes from update order rather than from the display.
Quick Answer: One Frame Must Carry One Value
A multiplexed display never shows all its digits at once. Each digit is on for a slice of the frame, and the eye integrates the slices into a steady number. Tearing appears when the value changes during the frame, so some digits are driven from the new data and others from the old.
The fix is not faster scanning and it is not a better display. The fix is an atomic display update: prepare the whole new value away from the scan, then move it into the scan buffer at a point where no digit is mid-slice, or in one transfer that the scan cannot interrupt.
How a Mixed Frame Appears
The symptom depends on how the value changes. A counter that increments by one digit tears only when a carry propagates, so it looks like a rare flicker on one digit. A timer that jumps from 59 to 00 tears on every rollover, and a setpoint that changes by several counts tears on almost every update.
Operators describe it differently from engineers. The report is usually that the display flickers, or that a digit shows a wrong number briefly, or that the last digit lags. A 7 segment update glitch that appears only on certain values is a strong clue that the update order is at fault rather than the drive, because a drive fault would affect every value equally.
It is worth separating tearing from two neighbours. Ghosting is light that leaks from one digit into another while both are correctly driven, and flicker is a frame rate problem that affects every value equally. Tearing is the only one of the three that depends on when the data changed.

Where the Update Order Breaks
Three patterns account for most cases, and each has a distinct fingerprint on the bench.
The scan reads memory that firmware is rewriting
If the scan interrupt reads the same array that the main loop writes, a write that lands mid-frame is read by some digits and missed by others. The window is small, which is why the fault appears intermittent and why it is often dismissed as a display problem.
The new value is written digit by digit
Writing four digit registers in sequence gives the scan three opportunities to show a mixed number. On a slow bus this window can last long enough to be visible at normal viewing distance, especially when the display is being watched by someone waiting for a reading.
The blanking window is shorter than the write
Some designs blank the display during an update, which works only if the blank lasts longer than the write. Blank too briefly and the scan resumes in the middle of the new data, which is tearing with extra steps.
The timing budget behind these three cases is shared with the scan design itself. Interrupt latency, bus clock and refresh rate all move together, and the interaction between scan edges and wiring is set out in multiplexed LED display EMI.
Three Fixes: Shadow Buffer, Latch, Blank Window
The three standard remedies differ in cost and in where they put the risk. Choosing between them is a matter of how much firmware control the design has and how strict the visible-consistency requirement is.
| Method | How it works | Where it can still fail |
|---|---|---|
| Shadow buffer with pointer swap | Firmware builds the new value in a second array, then swaps a pointer at frame start | Swap not atomic on an 8-bit core without a critical section |
| Latch at end of frame | New data is loaded into a latch and released once per frame | Latch clocked while the scan is mid-slice |
| Blank window sized to the write | Display is held dark until all digits carry the new value | Window too short, or brightness loss if it repeats often |
The shadow buffer is the usual first choice because it costs RAM and little else. It requires the swap itself to be safe: disable the scan interrupt for the few cycles the pointer takes, or use a single index variable that the interrupt reads once per frame. On a part with an atomic 8-bit store this is trivial; on a part where the pointer is wider than the bus, it needs a guard.
A hardware latch moves the problem to the driver, which is attractive when the scan runs in a peripheral. The shift register approach in shift register 7 segment display design gives exactly this behaviour, because the output register holds the old value until the new one is clocked through.
A blank window is the fallback when neither of the first two is available. Size it from the measured write time plus the worst-case interrupt latency, then check the resulting brightness at the lowest duty cycle the design allows.
Scanning Fast Enough for the Buffer to Work
A shadow buffer only removes tearing if the swap happens at a frame boundary the scan respects. An atomic update multiplex display path is therefore a scheduling problem before it is a display problem, because the refresh rate and the update rate have to be considered together. At a low refresh rate the frame is long, so a value that changes several times per second can still land mid-frame and be shown for a full frame before the swap takes effect.
In practice a refresh rate high enough to remove visible flicker also shortens the window in which a mixed frame can exist. The two problems share a design parameter, which is why tearing and flicker are often fixed in the same change.
Watch the duty cycle while doing this. Raising the refresh rate shortens each digit's on-time, and the display gets dimmer unless the segment current is raised to compensate. Current, brightness and scan rate form a triangle, and the third corner is covered in 7 segment driver IC selection.
The supply side also has a say, because a fast scan with high peak current draws pulses that the rail has to support. The decoupling and transient behaviour are set out in multiplexed LED display power supply transient, and a sagging rail can produce a mixed frame that looks exactly like a firmware bug.
Firmware Validation: The Counter Test
The fastest way to prove a fix is a test that maximises the probability of a mixed frame. Drive the display with a value that changes every few milliseconds, alternating between patterns that differ in every digit, such as 1111 and 8888. Any frame that mixes them is immediately visible and can be photographed.
Run the test with the main loop loaded, since tearing is a race and an idle processor hides it. Add a second test where the value changes during a carry, because carry propagation is the case that survives most fixes: a single-digit update is easy to make atomic, while a four-digit rollover is the one that exposes a half-finished write.
Record the outcome as a screenshot or a high-speed capture rather than a verbal pass. Tearing that appears once every few thousand frames will not be caught by watching the display for a minute, and a recorded test is the only way to show that the window has closed.
The fundamentals of how the digits are wired and driven are worth keeping at hand during this work, and 7 segment display working principle and pinout covers the drive arrangements this article assumes.

Frequently Asked Questions
What causes 7 segment display tearing?
Tearing happens when new display data reaches the scan part way through a frame, so some digits show the new value and others the old. The display itself is working correctly; the update is not atomic.
Is tearing the same as ghosting?
No, because ghosting is light leaking from one digit to another while the value is stable. Tearing only appears when the value changes, which is the quickest way to tell them apart on a bench.
Does a display double buffer need extra hardware?
Usually not, since a second array in RAM and a safe pointer swap are enough. Hardware helps when the scan runs in a peripheral that reads its own register set, where a latch provides the same guarantee.
Can raising the refresh rate fix tearing on its own?
It reduces the exposure time but does not close the race, because a mixed frame can still be built and shown. Keep the refresh rate for flicker and fix the update path for tearing.
How do I reproduce tearing during validation?
Change the displayed value every few milliseconds between patterns that differ in every digit, and run the test with the processor otherwise busy. A recorded capture then proves the fix rather than suggesting it.
Conclusion: Make the Frame Indivisible
7 segment display tearing is a data-consistency problem that presents as a visual one. Build the new value away from the scan, publish it at a boundary the scan respects, and prove it with a test that would expose a race if one remained. Once the update is atomic, the display is the least interesting part of the design again, which is exactly where it belongs.
For displays that will be driven by a host controller, the HOUKEM inquiry page is the place to confirm the drive arrangement and the timing the module supports.
LED Display Anti Glare Surface: When Reflections Hide the Digits
7 Segment Scan Jitter: Why Interrupt Timing Variation Creates Uneven Brightness