Electrical – Is it possible to load values to a counter upon startup

counterdigital-logiclogic-gates

I'm designing a digital clock for a freshman electrical engineering projects course. I am using SN74HC161 4-bit synchronous counter chips for the counting. My design counts seconds and minutes with correct rollovers, and I am going to design the hour logic next.

I am wondering if it is even possible to load values onto my counters as soon as the clock powers up. My counter begins from zero, but I want the clock to default to midnight, for example, because 0 o'clock does not exist. Though I will be adding a feature to set the clock's time (by manually incrementing hours), I don't want my clock to start off with zeros across all my seven segment displays.

This low-res picture is just for a general idea of my design. I am using NI Multisim (and yes, I understand this is a noob-ish piece of software, but I am a freshman electrical engineering student).

Clock Design

Here is a closeup of my counter / decoder chips so you can makeout the pinout.

enter image description here

Any help would be greatly appreciated.

Best Answer

I'm having trouble seeing the pins on your parts, but I believe I see a 'clear' or 'reset' input. If you place an RC circuit that goes into a Schmitt trigger and run the Schmitt trigger into your clear outputs, then at power up, the resets will all be held until the RC charges, typically a few milliseconds.

Looks like fun!

Edited to add a schematic using a comparator instead of a dedicated Schmitt trigger. Same idea. Set the delay using R1 and C1. Set the threshold using R2 and R3. If you need to invert, then keep R4 where it is and reverse the voltage divider and the RC circuit.

schematic

simulate this circuit – Schematic created using CircuitLab