While a counter changes state, its bits arrive at slightly different times and transient wrong codes appear, which a decoder happily translates. This page covers where the glitches come from and how to kill them.
Where glitches come from: when a counter steps, several bits may flip at once, but path delays differ, so a transient intermediate code shows, 011 to 100 can flash 000 or 111 for an instant. Feed those bits straight into a decoder, a 74LS47 or an address decoder, and the intermediate code is decoded: the display blinks or a memory chip is falsely selected. This is the race hazard showing up on counter outputs.
Display flicker: when a seven-segment display follows a counter and the transition edge decodes a transient illegal code, the segments flash for a moment. At low speed the eye may catch ghosting, and if the next stage is an address decoder selecting memory, the transient selects the wrong bank. The effect grows worse with multiplexed scanning.
Cures: first, register the counter output with an edge-triggered part such as a 74LS374 and decode only the registered, settled value, so glitches stop at the latch. Second, use a Gray-code counter where adjacent states differ in one bit, removing multi-bit races at the root. Third, gate the decoder enable to assert only after settling. Engineering practice is count, latch, then decode.
| Symptom | Cause | Fix |
|---|---|---|
| Display flicker | Intermediate code decoded | Add a latch |
| False select | Transient address | Delay the enable |
| Gray code | One bit changes | Root cure |
| Latch | 374 blocks glitches | Recommended |
| Decode gate | Enable after settling | Auxiliary |
| Scan blanking | Blank during transition | Anti flicker |
Latch the counter output before decoding for the most stable display. For address decoding, blocking glitches is mandatory or memory banks are falsely selected.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Counting display stability per GB/T 4728 and IEC 60617 symbols. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.