MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How to build frequency dividers with flip-flops
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)(每月更新中)

How to build frequency dividers with flip-flops

Divider building with flip-flops is a digital basic: one edge-triggered D flip-flop is a divide-by-two. This page covers the single stage, ripple cascades and the synchronous approach.

1. How it works

Single stage: wire the D input of a D flip-flop to its own Qbar and feed the clock into CK. Q toggles once per rising edge, so the output frequency is half the clock with a 50 percent duty cycle. This is the cleanest divide-by-two there is, far steadier than counting pulses with gates, naturally synchronous and glitch free.

2. Numbers and practice

Cascading: clock the next stage from the Q or Qbar of the previous one, and n stages give 2^n division. The ripple arrangement is simple, stage 1 halves, stage 2 quarters and so on, but each stage adds delay, so at high frequency the high bits lag and the duty cycle drifts. The synchronous arrangement clocks every stage together and forms each D from combinational logic on the previous stages, fast with aligned edges.

3. Pitfalls and fixes

Non-power-of-two ratios: for divide-by-10 or the like, let a counter reach a chosen value then reset or load, and latch the output with a flip-flop; the 74LS90 is internally exactly such a chain. Divider outputs feed displays, buzzers and stepper pulse trains, and the frequency accuracy is that of the crystal, stable to ppm level with little temperature drift.

4. Divide stages versus output frequency

Stages nDivide ratioOutput from 10MHz inTypical use
125MHzClock
242.5MHzMid band
381.25MHzPulse
416625kHzBeat
532312.5kHzScan
664156.25kHzTone scale

5. Notes

Ripple chains lag in the high bits, so use synchronous division at speed. Ratios that are not powers of two are built with the counter reset or load method.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Dividers and counting 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:
① Too many ripple stages:high-bit delay accumulates and the duty cycle drifts at speed
② D tied to Q instead of Qbar:the stage holds instead of toggling and division fails
③ Crystal accuracy too poor:divider output drifts and timing error accumulates

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