MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Preset method versus reset method for counter design
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)(每月更新中)

Preset method versus reset method for counter design

For an arbitrary modulus the preset method and the reset method take different roads with different glitch and timing behavior. This page sets them side by side and says which to use when.

1. How it works

Reset method: the counter counts freely from 0, and when state N appears the detect gate clears it, asynchronously on the spot or synchronously at the next edge. The circuit is minimal, one detect gate. The drawback: an asynchronous reset makes state N exist for only nanoseconds, a flash that downstream circuits can mistake for a real state, and the N state is briefly visible on the outputs.

2. Numbers and practice

Preset method: the counter runs from an initial value S to full scale M minus 1, and detection then reloads S, so the cycle length is N equals M minus S. No clear transient ever appears; the states cycle smoothly inside the legal range. The cost is an extra load data path and compare logic, slightly more circuit, but far cleaner in practice.

3. Pitfalls and fixes

Selection: for glitch-sensitive, smooth-display jobs such as displays and timing control use the preset method; for low-frequency, cost-driven boards that shrug off transients the reset method is acceptable. Synchronous clear and load are both hazard free, so prefer synchronous. After design, confirm with a state table that the cycle length is exactly N, no missing and no repeated states.

4. Preset method versus reset method

AspectReset methodPreset method
TransientGlitch when asynchronousNo glitch
CircuitOne detect gateLoad path and compare
State visibilityN state flashesSmooth cycle
Sensitive loadsCan false-triggerSafe
Synchronous versionHazard freeHazard free
Best forLow cost, low speedMainstream engineering

5. Notes

Choose the preset method wherever glitches matter; the reset method is fine for relaxed low-frequency boards if the next stage cannot see the transient. The synchronous version is best of all.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Counter design 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:
① Reset glitch reaching the next stage:the N state is taken as valid and the circuit misacts
② Preset initial value computed wrong:the cycle length misses the target
③ Asynchronous reset treated as synchronous:transient timing diverges from expectation

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