OldGuest Guest
|
Keypad on External INT |
Posted: Wed Apr 12, 2006 6:14 am |
|
|
hi everybody,
while interfacing keypad, my program demands that when a key is pressed, the main loop is interrupted and switches on to another mode (say config mode). To do this i plan to use external interrupt pin which gets triggered when any one of the key is pressed(i might OR all the kp pins and feed output to INT pin). Problem is keypad uses a scanning algo and for working this solution i would need to disable my interrupt during the scanning mode of keypad driver.
The other solution is to poll the keypad routine in the main loop and not get into the INT mess at all
Anyone having a better idea to design in this way.. Plz post ur suggestion |
|