Pressing any one button clears any other that was on.

Questions relating to designing PCBs

Moderator: phalanx

Post Reply
chandana
Posts: 1
Joined: Wed Feb 06, 2019 12:29 am

Pressing any one button clears any other that was on.

Post by chandana » Wed Feb 06, 2019 1:57 am

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.

lyndon
Support Volunteer
Posts: 1643
Joined: Thu Jul 17, 2008 6:37 pm
Location: Minnesota, USA

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

Post by lyndon » Thu Feb 07, 2019 7:37 pm

What is your reason for trying to avoid code? The solution will be far simpler that way.

n1ist
Support Volunteer
Posts: 1043
Joined: Wed Mar 22, 2006 11:02 am

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

Post by n1ist » Thu Feb 07, 2019 8:26 pm

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

Post Reply