微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > Multiple Key Press using AVR ATmega128 and 4x4 keypad

Multiple Key Press using AVR ATmega128 and 4x4 keypad

时间:04-07 整理:3721RD 点击:
Hello everyone....

I have bought a 4x4 matrix keypad and wish to implement it in my project involving AVR ATmega128.
I have successfully tested it and am able to detect SINGLE key-presses.

Next I wanted to implement mobile-phone type keypad using my 4x4 keypad where suppose i press a key
one then "1" is displayed but if i press the SAME KEY twice then "A" is displayed and similarly if I press the SAME KEY
THREE times in a row then "B" is to be displayed. This goes for all keys until a fully Alpha-Numeric keypad
is established.
That is the problem I am facing. I am unable to detect multiple key presses of the SAME KEY.
Also, the code needs to be small so that not much CPU Time is consumed there because
I have other big issues to take care with the CPU.

I would appreciate any help from you. Any code links would greatly ease my problems.
I have been searching GOOGLE for days but all in vain.

Thank you in advance..

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top