Microsoft Word - Digital Logic Design v_4_6a

(lily) #1
 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 Q

Clear

D Clock

Vcc

GND


Out

Switch in
Position A

Change Switch
to Position B

Change Switch
to Position A

A


B


Out
Free download pdf