摘要
在单片机系统中 ,可能会用到标准的PC机键盘。标准PC机键盘有独立的微处理器 ,它与主控制器的通信必须遵守严格的通信协议及时序关系 ,所传送的数据也有严格的标准。本文对标准PC/AT键盘接口的通信协议及传输时序进行了研究 ,全面介绍了键盘扫描码、系统命令码及键盘响应码 ,解决了单片机系统中应用标准PC键盘的问题 。
The standard keyboard of PC is often used on a single chip microcomputer system, which has the stand-along micro-controller. The keyboard's communication with the main controller must be conform to the protocol as well as the clock series, and the data being transferred has the strict rule. In this paper, we introduced the scancode、 system command code and acknowledgement code in detail, solved the problem of the application of PC keyboard on single chip microcomputer system through the study of the PC/AT communication protocol as well as clock series and gave the typical solution.
出处
《西南工学院学报》
2001年第2期29-34,共6页
Journal of Southwest China Institute of Technology
关键词
单片机
键盘
时序
通信协议
Single chip microcomputer
Keyboard
Clocked serial
Communication protocol