The 3-bit counter increments from the clock input, this then goes through a 3-8 decoder. If the output of the decoder is high and it's corresponding INx is high, OUTx is set high and the clock signal to the adder is interrupted.
Connect buttons up to IN0-IN7 and whichever one is pressed first will set the corresponding OUT0-OUT7 high.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | Button 0 | LED 0 / segment a | |
1 | Button 1 | LED 1 / segment b | |
2 | Button 2 | LED 2 / segment c | |
3 | Button 3 | LED 3 / segment d | |
4 | Button 4 | LED 4 / segment e | |
5 | Button 5 | LED 5 / segment f | |
6 | Button 6 | LED 6 / segment g | |
7 | Button 7 | LED 7 / dot |