MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Counters at work in a digital clock circuit
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)(每月更新中)

Counters at work in a digital clock circuit

A digital clock is three counter chains in series: 60 seconds, 60 minutes, 24 hours. This page shows how to build a keeping-time clock from standard counter chips.

1. How it works

Chain structure: second units count 0 to 9 in BCD and carry at ten; second tens count 0 to 5 and carry at six, which together make modulus 60; minutes repeat the same 60 pattern into hours; hours count 0 to 23 and clear at 24. Each stage is a decade counter such as the 74LS160 or 74LS90 plus feedback logic, and each carry drives the clock or enable of the next stage.

2. Numbers and practice

Feedback logic design: the second-tens stage is modulus 6, trimmed by reset or preset to walk only 0 to 5. Hours are modulus 24: clear when the tens digit is 2 and the units digit is 4. These feedback gates must be exact or the clock jumps 60 seconds or shows a 25th hour. Display through 74LS47 decoders into common-anode digits, four or six positions.

3. Pitfalls and fixes

Time base and setting: derive 1Hz from a 32768Hz crystal through 15 stages of divide by two for accuracy. The setting switches force the hour and minute counters to clock from a debounced pushbutton while normal timekeeping pauses. Hour chimes can detect minutes 59 and seconds past 50 to drive a buzzer, and a battery backs the crystal and counters through outages.

4. Modulus of each stage in a digital clock

StageModulusBuilt byCarries to
Second units10Decade counterSecond tens
Second tens6Feedback logicMinute units
Minute units10Decade counterMinute tens
Minute tens6Feedback logicHour units
Hour units10Decade counterHour tens
Hour tens2 within 23Feedback for 24Roll to zero

5. Notes

A 32768Hz crystal divided to 1Hz is what keeps time honest. Use debounced pushbuttons for setting so a single press does not jump minutes.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Digital clock 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:
① RC oscillator instead of a crystal for the time base:error accumulates day by day
② Setting pushbutton not debounced:one press skips several minutes
③ Modulus 24 feedback computed wrong:the clock shows 24 or 25 hours

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