检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]解放军炮兵学院,安徽,合肥,230031 解放军炮兵学院,安徽,合肥,230031
出 处:《电脑知识与技术(过刊)》2007年第20期425-426,共2页Computer Knowledge and Technology
摘 要:为减少单片机键盘控制占用口线过多的问题,本文介绍了基于12C总线结构的键盘控制方法,给出了硬件电路和软件代码.该方法只要占用单片机的三个口线即可实现对多达64个按键的控制,不但解决了当前单片机开发中遇到的口线不够用的问题,而且电路实现简单,同时采用中断的方式实现按键扫描码的读入,能直接读出按键扫描码,程序简单、易行.To reduce the number of the MCU's ports which are used to control the keyboard, this paper introduces a way to control the keyboard based on the I2C bus, submits the circuit design and the program codes. In this way, we can control the 64 keystrokes only by using 3 ports, the problem that the ports are not enough in the circuit design is resolved, and the circuit is easy to design, at the same time, we adopt the interrupt way to read the key-press codes straightly, the program codes are easy and feasible.
分 类 号:TP368[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.4