MagmaArcade / 12-Hr-Clock-Logic-Circuit

A logic circuit design for a 12 hour clock using a dual clock system with automatic and manual modes, AM/PM indication, and an alarm features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#12-Hr-Clock-Logic-Circuit<

12-Hr-Clock-Logic-Circuit

Description of the circuit:
My circuit utilizes two distinct clocks: the actual clock, which holds the time incremented by the clock itself, and the alarm clock, which stores the alarm time set by the M+ and Hr+ increment buttons. The clocks are positioned at the top and bottom of the circuit, featuring similar designs. Both clocks share a display, toggled by the set alarm button placed just below the top clock (actual clock). All buttons, including clock time, AM/PM, and the alarm indicator, are located on the right side of the circuit.

An outline of the design:
The gate responsible for switching between the auto clock and the manual clock employs 2 AND gates and an OR gate. Enabling the set time pin blocks the auto clock. Multiple AND gates are employed to compare the actual and alarm clocks. The comparison necessitates both true and false values (utilizing NOT gates) to ensure the passage of matching values. The switch between the actual and alarm clocks employs a concept similar to the auto clock, allowing only one set of values to be displayed by the hex digit display.

Assumptions:
I assumed that incorporating a second clock would be the optimal solution, given the task's requirement to store and redisplay time after setting the alarm clock. I also assumed the need for a snooze button since the alarm should remain active until addressed, similar to real clocks. Despite the unusual request for using the same button to activate and disable the alarm, I incorporated both functionalities.

Stage 1:
Design for the minutes side counter with a reset at 59 minutes.

stage 1

Stage 2:
Added a manual override switch to halt clock incrementation, utilizing a button (M+) for time advancement.

stage 2

Stage 3:
Design for the hour side counter with a reset at 12 hours.

stage 3

Stage 4:
Combined stages 2 and 3 for a complete 12-hour clock design.

stage 4

Stage 5:
Incorporated an alarm feature as a second clock holding the "alarm time." This feature allows users to switch to the alarm clock and increment it using the H+ and M+ buttons for alarm time setting. Additionally, a snooze feature was added to silence the alarm.

stage 5

About

A logic circuit design for a 12 hour clock using a dual clock system with automatic and manual modes, AM/PM indication, and an alarm features.