Seminar Topics & Project Ideas On Computer Science Electronics Electrical Mechanical Engineering Civil MBA Medicine Nursing Science Physics Mathematics Chemistry ppt pdf doc presentation downloads and Abstract

Full Version: Debouncing a Switch PPT
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Debouncing a Switch

[attachment=46415]

Causes

Switches and buttons are mechanical
Spring loaded
Contacts literally bounce
Not an instant, once-only, on↔off change

Source of Errors

Consider a 100 MHz system clock, which has a 10 ns period
Each ms would be 100,000 system clock cycles
Downstream circuitry will see every bounce as an input change!

FSM Solution

Simple enough that an FSM might not be required
Easy to concoct a sequential circuit to do this with a counter and a single FF
Let’s do it with an FSM
If solution requires only a counter and a single FF, we will find that solution

Debouncer Summary

Structure is timer + FSM
2-state FSM makes NS logic trivial
Asynchronous input “noisy” means we must be sure our system works with any input timing
If desired/needed, synchronize “noisy” input using one or more flip flops
Counter too large for conventional techniques
Use MUX + register technique of Chapter 12
Systems can usually be greatly simplified beyond the obvious design by using careful analysis