There is no predetermined time for switch debouncing. Each switch is different, even within a class of switches. 20ms is typically a good place to start from, but it can be more or less depending on your switches. If you want to be really sure, measure the bounce time over multiple iterations for each key and take the greatest settling time to be your debouncing time.I am interfacing keyboard.
I have kept debounce time = 20ms.
What should be stable state time period for normal keyboard interfacing
Thank you for that.... However bounce is generally regarded as being a bad thing, and certainly not something to aim for.Bouncing is the tendency of two metal contacts in an electronic device the aim is to generate multiple signals as the contacts close or open, Debouncing is any kind of device or software which ensures that only a single signal will acted upon for the single opening or closing of a contact.