一种改进型矩阵键盘电路
详细信息    查看全文 | 推荐本文 |
  • 英文篇名:Improved matrix keyboard circuit
  • 作者:张绍荣 ; 莫禾胜
  • 英文作者:Zhang Shaorong;Mo Hesheng;Guilin University of Aerospace Technology,College of Electronic Information and Automation;
  • 关键词:矩阵键盘 ; I/O ; 单片机处理器
  • 英文关键词:matrix keyboard;;I/O;;MCU processor
  • 中文刊名:GWCL
  • 英文刊名:Foreign Electronic Measurement Technology
  • 机构:桂林航天工业学院电子信息与自动化学院;
  • 出版日期:2017-01-15
  • 出版单位:国外电子测量技术
  • 年:2017
  • 期:v.36;No.266
  • 基金:广西高校教学研究项目2015年度重点项目“基于Zigbee的智能静脉输液器网络控制系统设计”(编号:KY2015ZD143)资助
  • 语种:中文;
  • 页:GWCL201701021
  • 页数:5
  • CN:01
  • ISSN:11-2268/TN
  • 分类号:88-91+100
摘要
在分析现有键盘电路不足的基础上,提出了一种新型的矩阵键盘电路。现有的矩阵键盘电路,使用各种方法减少单片机控制I/O的数量;但是,组合按键功能、识别长短时间按键等问题不能得到同时兼顾。为了解决此问题,改进型键盘电路通过外加计数器、译码器以及若干二极管,使用2个单片机I/O端口即可实现4×4矩阵键盘的检测和识别,同时在程序设计中构建一个按键结构体,记录组合按键信息和按键按下的时间。实验结果表明,改进型矩阵键盘电路可正确识别单按键和组合按键,同时可识别长短时间按键。另外,简单的控制接口和程序设计为矩阵键盘在不同单片机系统上的移植带来了极大的便利。
        On the basis of analyzing the disadvantage of the existing keyboard circuit,a new kind of matrix keyboard circuit is proposed.The existing matrix keyboard circuit,reducing the amount of the I/O of microcomputer(MCU)for controlling with a variety of methods.However,detecting combination of buttons and identifying buttons for different pressed time can't get both at the same time.Combined with additional counter,decoder and a number of diode,the 4×4matrix keyboard can be detected and identified only by two MCU I/O port.At the same time a structure for buttons detection is built in programming to record the information for the combination of buttons and time for the pressed button.The experimental results show that the improved matrix keyboard circuit can correctly identify a single key and combination,also recognizing buttons for different pressed time.In addition,it is conveniently transplanted to other processors for the simple control interface and programming.
引文
[1]李晓坤,刘百玉,欧阳,等.基于FPGA和SRAM的智能点胶机控制系统设计[J].仪器仪表学报,2009,30(7):1378-1383.
    [2]彭正琴,翟浩,陆昉,等.基于小型铷频标的数字化多功能时统的研制[J].电子测量与仪器学报,2014,28(2):164-170.
    [3]郭红霞,刘磊.基于PID控制算法的自动取暖控制器的设计[J].国外电子测量技术,2014,33(2):29-32.
    [4]徐伟,汤莹,杨绪森.基于CPLD的高精度程控移相器[J].电子测量技术,2014,37(12):5-9.
    [5]刘然.一种新颖的键盘扫描方法与仿真实现[J].电子制作,2008(7):86-87.
    [6]刘天时,刘赏,付春.一种单片机键盘电路设计与消抖处理[J].计算机与网络,2010,36(10):66-68.
    [7]王芳,高金辉,张敏.基于AVR微控制器的ADC按键设计技巧[J].自动化与仪器仪表,2007(6):74-76.
    [8]魏明.基于A/D转换的键盘阵列分析与设计[J].电子世界,2011(11):37-37.
    [9]卜登立.基于优先级编码器的非编码矩阵键盘接口设计[J].化工自动化及仪表,2010,37(4):93-95.
    [10]裴亚男,张冬波,甘方成.基于译码器扩展的单片机键盘输入电路[J].工矿自动化,2007(4):103-104.