Page 1 of 1

Pressing any one button clears any other that was on.

Posted: Wed Feb 06, 2019 1:57 am
by chandana
Hai,

I am trying to recreate a control panel that is a row of buttons where only one button can be pressed at a time.

Pressing any one button clears any other that was on.

Can anyone help me by providing logical solution through hardware components or circuits. I can do it by coding but i want it by hardware circuit.

Thanks & Regards,

Chandana.

Re: Pressing any one button clears any other that was on.

Posted: Thu Feb 07, 2019 7:37 pm
by lyndon
What is your reason for trying to avoid code? The solution will be far simpler that way.

Re: Pressing any one button clears any other that was on.

Posted: Thu Feb 07, 2019 8:26 pm
by n1ist
You have multiple buttons. Each needs to be debounced. All of the debounced buttons get OR'ed together to generate a clear signal.

For each button, there would be an SR flipflop. The debounced button would drive set, and reset would be driven by (clear and not set). This would reset all of the flipflops except the one corresponding to this button.
/mike