I am developing an 8051 based keypad module. Problem i am facing is that program is scanning port very fast so that a simngle keypress will be taken as multiple presses. To over come this a delay was introduced . If delay value is high key presses wont be detected unles i hold keys for a long time. if delay is low that first case occurs. Is trail and error the only option. is there any standard procedure for the same. I want my key pad to work in same way as our computer keybaord. Thank you NITIN
Here's a couple of links I found by searching Google for "debouncing algorithms": http://www.ganssle.com/articles/adbounce.htm http://www.eetasia.com/ARTICLES/2003MAR/B/2003MAR01_DA_NTES_TA.PDF