检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]南京理工大学自动化学院,南京210094 [2]景德镇市技工学校,景德镇333000
出 处:《微计算机信息》2012年第2期66-68,共3页Control & Automation
摘 要:本文采用STC89C58RD+单片机设计了16×8矩阵键盘,实现了PS/2协议,键值修改方便,可应用于各种基于计算机的控制系统。单片机通过定时器中断进入键盘扫描程序,翻转扫描查询法查询矩阵键盘中是否有键值变化。如果有键被按下,则通过查询键值表将该键对应的通码发出;如果有按键抬起,则将该键对应的断码发出。该矩阵键盘可扫描128个按键,满足绝大多数系统需求。所有键值存储在一张表中,对于不同的系统,只需要制作外形不同的矩阵键盘电路,并通过修改键值表即可轻松移植。In this paper,a 16x8 matrix keyboard basing PS/2 protocol is designed using STC89C58RD+ single chip microcontroller. It can edit key value conveniently,and can be used in each kind of control system based on computer.Microcontroller scans keyboard when timer interrupter comes,the reversal-scan detects change of the key value.It sends make code when key down,and send break code when key up.It scans 128 key,can used in other system.All of the key value saves in a key table,a edition of key table can make the matrix keyboard working in different keyboard PCB.
分 类 号:TP39[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7