I've noticed that many people use a 1 ms time interval to determine the stable state of a button press or release. Recently, I came across a thread https://forum.allaboutcircuits.com/threads/debouncing-a-switch-in-software-using-a-pic16f72.100339/where members were discussing the use of 1 ms timer intervals for this purpose. However, I'm aware that the debounce time of a button depends on the type of button. For instance, consider this push button, which has a maximum debounce period of 50 ms.
I'm interested about why people choose to take only 10, 20, or 25 samples within every 1 ms intervals. It seems like a relatively small number of samples given the potential debounce period.
I'm interested about why people choose to take only 10, 20, or 25 samples within every 1 ms intervals. It seems like a relatively small number of samples given the potential debounce period.