摘要
介绍了PS/2协议及PS/2标准键盘的第2套扫描码和命令集,给出了在单片机系统中支持PS/2键盘的硬件连接方式以及利用Keil C51语言实现的驱动程序设计和部分代码.驱动程序在单片机系统中实现了对PS/2标准104键盘的支持;该程序在AT89C51单片机上运行通过,同时还可以方便地移植到其他单片机或嵌入式系统中.
The PS/2 protocol is analyzed in the paper. The standard scan code set 2 and command set of PS/2 keyboard are also introduced. Besides,the hardware connection of PS/2 keyboard to MCU, and it's driver programmed by Keil C51 language are given, the driver realize the support of the PS/2 standard 104 keyboard in MCU system. The driver can be used in other MCU system or embedded system easily. It is benificial to use PS/2 keyboard in the MCU application system or embedded application system.
出处
《江南大学学报(自然科学版)》
CAS
2006年第3期281-285,共5页
Joural of Jiangnan University (Natural Science Edition)