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.
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.
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.
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.
| Stage | Modulus | Built by | Carries to |
|---|---|---|---|
| Second units | 10 | Decade counter | Second tens |
| Second tens | 6 | Feedback logic | Minute units |
| Minute units | 10 | Decade counter | Minute tens |
| Minute tens | 6 | Feedback logic | Hour units |
| Hour units | 10 | Decade counter | Hour tens |
| Hour tens | 2 within 23 | Feedback for 24 | Roll to zero |
A 32768Hz crystal divided to 1Hz is what keeps time honest. Use debounced pushbuttons for setting so a single press does not jump minutes.
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.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.