MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How counters work as frequency dividers and where they fit
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 counters work as frequency dividers and where they fit

A counter is already a divider: one output pulse per N input clocks is division by N. This page covers choosing the ratio, adjusting the duty cycle and typical applications.

1. How it works

Division principle: a modulo-N counter flips or pulses its top bit or carry output once per N input clocks, so the output frequency equals the input divided by N. Taking the top bit Q of a counter cycling 0 to N minus 1 gives a square wave that is high half the period and low half, a perfect 50 percent duty when N is even.

2. Numbers and practice

Duty cycle control: taking one bit fixes the duty at 50 percent but restricts N to powers of two. For an arbitrary N with adjustable duty, use a programmable divider plus a comparator: clear at one value and set at another so the high and low durations are set independently, or run two modulo-N counters in offset phases and OR them. Clock generators and PWM all build on this.

3. Pitfalls and fixes

Applications: dividing an MCU clock down for peripherals; reducing a 32768Hz watch crystal to a 1Hz second pulse through 15 stages of divide by two; scaling stepper motor pulse rates for speed control; generating baud rates for communication. Accuracy comes from the crystal with tiny temperature drift, far steadier than an RC oscillator.

4. Divide ratio and output frequency table

InputDivide NOutputDuty
32.768k327681Hz50 percent
10M101MHz50 percent
10M100100kHz50 percent
10M25MHz50 percent
10M33.33MAdjustable
10MAnyAdjustableComparator set

5. Notes

Even division from the top bit gives 50 percent; arbitrary ratios use a comparator to set the high and low times independently. Accuracy rests on the crystal.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Divider applications 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:
① Odd division taken from the top bit:the duty is not 50 percent and the frequency math is wrong
② Crystal with large temperature drift:divider output accumulates timing error
③ Comparator threshold unstable:duty drifts and PWM loses accuracy

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