MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Counter output glitches and stable decoding for displays
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Counter output glitches and stable decoding for displays

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.

1. How it works

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.

2. Numbers and practice

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.

3. Pitfalls and fixes

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.

4. Counter glitches and countermeasures

SymptomCauseFix
Display flickerIntermediate code decodedAdd a latch
False selectTransient addressDelay the enable
Gray codeOne bit changesRoot cure
Latch374 blocks glitchesRecommended
Decode gateEnable after settlingAuxiliary
Scan blankingBlank during transitionAnti flicker

5. Notes

Latch the counter output before decoding for the most stable display. For address decoding, blocking glitches is mandatory or memory banks are falsely selected.

6. References

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.

7. Cautions

⚠️ Three common pitfalls:
① Counter driving a decoder directly:transition transients are decoded, display flickers and selects falsely
② No latch in front of an address decoder:memory areas open on transient addresses
③ Gray-code output fed to an ordinary decoder:the mapping mismatches and the display is wholly wrong

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL