| ??? 07/12/03 16:44 Read: times |
#50552 - RE: 16bit hex to 8bit bcd, key trapping? Responding to: ???'s previous message |
You may want to look back a few days in the forum listing. There is a thread that starts here....
http://www.8052.com/forum/read.phtml?id=50084 In that thread there is a posting by Rob that links to another post I made a while back. If you link back to that you can find key pad scanning code that you can plug into yor project. Here is the start of the link chain.... http://www.8052.com/forum/read.phtml?id=50086 If you take the code as shown and plug it into your application you need to call the key_scan() function once each 10 msec from a timer interrupt routine. That routine will need a little modification in terms of where the rows and columns of the keypad are connected and the values in the row and column translate tables. Once you have that in place there are three subroutins that your mainline code can call. These permit you to check if a key is pressed, what the key was, and check if a key is being held down. Good Luck Michael Karas |
| Topic | Author | Date |
| 16bit hex to 8bit bcd, key trapping? | 01/01/70 00:00 | |
| RE: 16bit hex to 8bit bcd, key trapping? | 01/01/70 00:00 | |
| RE: 16bit hex to 8bit bcd, key trapping? | 01/01/70 00:00 | |
| RE: 16bit hex to 8bit bcd, key trapping? | 01/01/70 00:00 | |
| 16bit hex to decimal : | 01/01/70 00:00 | |
| RE: 16bit hex to decimal : | 01/01/70 00:00 | |
| RE: 16bit hex to decimal : | 01/01/70 00:00 | |
RE: 16bit hex to decimal : | 01/01/70 00:00 |



