Keyboard interface
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-12-14 3:47 PM
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-11-29 6:42 AM
Posted on November 29, 2005 at 15:42
Hi
I am working on ST72324 chip and have to program it for a 4X5 keyboard that is attached to PORT B and PORT C pins. The problem is I have to detect the key press as well as the key release. The key press detection is not a problem but how can I capture a key release? I am polling the keyboard every 2 millisecs using the timer interrupt. Regards ChetanOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-11-29 11:53 PM
Posted on November 30, 2005 at 08:53
you should use flag flKeyPress, which is set when any key is pressed.
Then: if ((flKeyPress) and (ScanKeyBoard() == noKEY)) //key released and do it each 2 ms... Do not forget that you should filter glitches on the switches... ;)Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-12-14 3:47 PM
Posted on December 15, 2005 at 00:47
Thank you...
Figured it out and also implemented considering the glitches..