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