Forum Discussion
Altera_Forum
Honored Contributor
11 years agoThe filter time must be longer than the bouncing settling time.
An unfiltered pushbutton is likely to have bouncing spikes extending in the 100us - 1ms range, so you need to sample the level for a few ms. With a 24MHz and 8 samples you achieve a filter "low pass" frequency of about 3MHz which is totally ineffective. You must use a lower frequency sampling: if you keep the 8 samples, choose a sample rate around 10kHz.