We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
You could maintain the state of all keys in an array. Each element in the array would be either OPEN or CLOSED. Then you can call your actuation function when you see a transition from OPEN to CLOSED. Kind of equivelant to a key-down event on a PC keyboard. Paul.