This is a typical 23h-format 4 digits clock. Two digits for hours and the other for minutes. Digits are in BCD format. It uses a 1 megahertz signal for reference. One push button for setting the hour or minute and another push button for advancing forward the hours or the minutes. In order to display the hour it is needed four 7-segment-BCD decoders.
A one MegaHertz clock signal must be connected to the clk pin. Reset goes from 1 to 0 to start the clock operation. In order to set the correct hour, a pulse signal is needed in the set pin, then M0 digit should be blinking, a pulse in the P0 pin will change this digit. A new pulse in the set pin will change the process to the M1, and another pulse to the H0 and H1.
3 push buttons, 1 MHz signal generator, 4 seven segment decoders.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | rst | M0[0] | H0[0] |
1 | clk | M0[1] | H0[1] |
2 | P0 | M0[2] | H0[2] |
3 | set | M0[3] | H0[3] |
4 | M1[0] | H1[0] | |
5 | M1[1] | H1[1] | |
6 | M1[2] | Dots | |
7 | M1[3] |