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.
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.
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.
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.
| Aspect | Reset method | Preset method |
|---|---|---|
| Transient | Glitch when asynchronous | No glitch |
| Circuit | One detect gate | Load path and compare |
| State visibility | N state flashes | Smooth cycle |
| Sensitive loads | Can false-trigger | Safe |
| Synchronous version | Hazard free | Hazard free |
| Best for | Low cost, low speed | Mainstream engineering |
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.
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.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.