qbcs
Newbie level 4
keypress interrupt
Hi All,
I have developed an 8051-based controller. The controller has a number of peripherals. One of them is a set of 7 keys. Upon pressing a key, certain function(s) would be performed. The keypress routine is hoped to be interrupt-driven rather than standard scan key. When I have tried to make use of the available routines, such as KeyRead_Int.asm by J. Flanagan (**broken link removed**) and Buttons.asm by Dave Fletcher (**broken link removed**), I have failed to coordinate the main program with the interrupt service routine. When I have tried to test my program using 8051 simulator, everything seems good. When hardware is used, not all keypresses could be recognized. Most of successive key press were ignored. For example, pressing Down for the first time has no problem, but pressing it again yields no response.
Would you kindly try to take a look at my test programs, using the above routines, and help to fix the problem thanking you in advance.
Thanks
Hi All,
I have developed an 8051-based controller. The controller has a number of peripherals. One of them is a set of 7 keys. Upon pressing a key, certain function(s) would be performed. The keypress routine is hoped to be interrupt-driven rather than standard scan key. When I have tried to make use of the available routines, such as KeyRead_Int.asm by J. Flanagan (**broken link removed**) and Buttons.asm by Dave Fletcher (**broken link removed**), I have failed to coordinate the main program with the interrupt service routine. When I have tried to test my program using 8051 simulator, everything seems good. When hardware is used, not all keypresses could be recognized. Most of successive key press were ignored. For example, pressing Down for the first time has no problem, but pressing it again yields no response.
Would you kindly try to take a look at my test programs, using the above routines, and help to fix the problem thanking you in advance.
Thanks