Electrical – How to implement an ON/OFF switch in a simple digital circuit

digital-logicswitching

I'm trying to find a way to implement a simple ON/OFF switch, alongside a START/STOP switch in a simple digital circuit. Here's an example simulation of what I did:

enter image description here

As you can see, I have some undefined states in the fourth case, when the circuit is off, but its functionality is started. What would be ideal in this case is, when the on/off switch is on (not pushed), the start/stop switch can change states independently, but when the on/off switch is off (pressed down), the start/stop switch goes down with it. What would be a good way to implement this in the digital domain?


The circuit is a simple digital dice. When it is started, the LEDs change states between numbers 1-6 quickly, and when it is stopped, the LEDs stop at one of the states. The on/off switch, however, turns off the LEDs and IC that drives them.

Edit: This is the IC that is controlled by ON/OFF switch:
enter image description here

Best Answer

If you want to "turn off" the LEDs and ICs, just put a SPST toggle switch in the incoming power line. One position is OFF, the other position is ON. Based on the information you have provided, that is exactly the functionality you want.