Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- The 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. --- Quote End --- thanks. but, what do you mean? i change my 24MHz clock? or the number of samples? i tried increasing the number of samples, still i get same results. please help.