Investigation of Switch Bounce
- Using Push Button Switches as
Input (this shows switch being pulled down by resistor, use
pull up instead)
- Breadboard a push button switch with pull up.
- What is an oscilloscope?
- Connect the output to a digital oscilloscope, and adjust the V
gain to see a suitable trade on the oscilloscope.
- Get a trace of the bounce on the scope by using the trigger
mode and adjusting the time base.
- Print out the oscilloscope trace.
- Read possible hardware
solutions.
- In most microcontroller applications we opt instead for a
software solution instead of the hardware solutions above. The
software solution is usually less expensive and less complex
because it requires no more parts and it can be easily modified.
The next two assignments both deal with switch debounce by adding
a software delay. Each deals with the switch input slightly
differently, one by polling the input pin and the other by using
an interrupt.
Technological Design
Home