摘要
矩阵键盘是单片机应用技术中常用的模块,以51单片机为例,要正常使用矩阵键盘,首先要识别键盘,当用户按下任意一个按键的时候,通过软件程序计算出被按下的开关按键的按键号。本文提出一种矩阵键盘识别的新算法,基于新算法编写的键盘识别程序更加简洁高效,特别是按键越多越体现它的优越性。
Matrix keyboard is a commonly used module in the application technology of single chip computer.To use the matrix keyboard normally,the first step is to identify the keyboard.When the user presses any key,the key number of the pressed switch key is calculated by the software program.In the paper,a new algorithm for matrix keyboard recognition is proposed.The keyboard recognition program based on the new algorithm is more concise and efficient,especially the more keys,the more advantages it has.
作者
陶有军
Tao Youjun(College of Higher Technology,Xi'an University ofTechnology,Xi'an 710082,China)
出处
《单片机与嵌入式系统应用》
2019年第9期43-45,49,共4页
Microcontrollers & Embedded Systems
关键词
单片机
矩阵键盘
按键识别
逐列扫描
行列反转
MCU
matrix keyboard
key recognition
column-by-columnscanning
row-by-column inversion