一种改进型矩阵键盘电路
DOI:
作者:
作者单位:

桂林航天工业学院电子信息与自动化学院 桂林 541004

作者简介:

通讯作者:

中图分类号:

TN710.9

基金项目:

广西高校教学研究项目2015年度重点项目“基于Zigbee的智能静脉输液器网络控制系统设计”(编号:KY2015ZD143)资助


Improved matrix keyboard circuit
Author:
Affiliation:

Guilin University of Aerospace Technology, College of Electronic Information and Automation, Guilin 541004, China

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    在分析现有键盘电路不足的基础上,提出了一种新型的矩阵键盘电路。现有的矩阵键盘电路,使用各种方法减少单片机控制I/O的数量;但是,组合按键功能、识别长短时间按键等问题不能得到同时兼顾。为了解决此问题,改进型键盘电路通过外加计数器、译码器以及若干二极管,使用2个单片机I/O端口即可实现4×4矩阵键盘的检测和识别,同时在程序设计中构建一个按键结构体,记录组合按键信息和按键按下的时间。实验结果表明,改进型矩阵键盘电路可正确识别单按键和组合按键,同时可识别长短时间按键。另外,简单的控制接口和程序设计为矩阵键盘在不同单片机系统上的移植带来了极大的便利。

    Abstract:

    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×4 matrix 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.

    参考文献
    相似文献
    引证文献
引用本文

张绍荣,莫禾胜.一种改进型矩阵键盘电路[J].国外电子测量技术,2017,36(1):83-86

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2017-03-13
  • 出版日期: