I am looking for a little help from somebody that has experience connecting a matrix style keypad to the Keyboard IF on the AT89C51.
I have a 4x4 matrix style keypad and I am not quite sure the proper method of connecting, debouncing and scanning for keypresses. My best assumption is to debounce the 4 row pins and connect them to the keyboard interrupts on Port1. Then I would leave the other 4 column pins bouncy and connect them to regular inputs. Upon interupt I would scan the inputs to see which key was pressed....
Is there a better method of interfacing with the keypad?
I have a 4x4 matrix style keypad and I am not quite sure the proper method of connecting, debouncing and scanning for keypresses. My best assumption is to debounce the 4 row pins and connect them to the keyboard interrupts on Port1. Then I would leave the other 4 column pins bouncy and connect them to regular inputs. Upon interupt I would scan the inputs to see which key was pressed....
Is there a better method of interfacing with the keypad?