Gorgeous Clock, And Not A Line Of Code In Sight

[Harry] dropped us a note to let us know about his completed CMOS clock project, and we’re delighted that he did because it’s gorgeous. It’s a digital clock satisfyingly assembled entirely from hardware logic, without a single line of code. There are three main parts to this kind of digital clock: ensuring a stable time base, allowing for setting the time, and turning the counter outputs into a numerical display.

Keeping accurate time is done with a 32.768 kHz crystal, and using CMOS logic to divide that down to a 1 Hz square wave. From there, keeping track of hours and minutes and seconds is mostly a matter of having counters reset and carry at the appropriate times. Setting the clock is done by diverting the 1 Hz signal so that it directly increments either the hours or minutes counter. The counter values are always shown “live” on six 7-segment displays, which makes it all human-readable.

The whole thing is tastefully enclosed in a glass dome which looks great, but [Harry] helpfully warns prospective makers that such things have an unfortunate side effect of being a fingerprint magnet. Schematics and design files are provided for those who want a closer look.

This clock uses a crystal and divider, but there’s another method for keeping accurate time and that’s to base it off the alternating current frequency of power from the grid. Not a bad method, albeit one that depends on being plugged into the wall.