D Flip Flop with Set & Reset
This approach uses a D Flip Flop with Set and Clear to debounce the switch output as shown
below Software Debounce
In systems with microprocessor, it may be advantages to programmatically debounce the switch.
This is done by reading the value of switch over a period of time that is longer than debounce time for
the switch. The read value will be accepted only if the value is the same across two or more reading.
Set QClearD ClockVccGND
OutSwitch in
Position AChange Switch
to Position BChange Switch
to Position AA
B
Out