Software vs. Hardware Debouncing for Push Button and Switches
The rationalle of using one method over the other and the tradeoffs. In software debouncing, the trade off is the microcontroller requires a few more cycles which can slow the execution of the program slightly and the variables needed for software debouncing requires a bit of memory. The trade-off with hardware debouncing is that the extra hardware (capacitor or capacitor/resistor pair) will introduce a cost to the circuit where if the circuit will be used in a product that will have thousands, or many thousands of units made, a hardware solution may be too expensive.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.