摘要
针对标准的PS/2接口,用单片机实现了键盘功能,本文分析了PS/2键盘的接口和通讯协议,介绍了单片机实现PS/2键盘的接口设计,并以AT89C52为例,配合PC机标准PS/2键盘接口,模块化编程实现了对键盘各个按键的扫描以及与PC机的通信.
This paper describes the interface and protocol used by PS/2 keyboard and how to design the PS/2 keyboard with MCU.In this article,the skill of keyboard design with AT89C52 is introduced.Accordingly,the modularization software implementation is given for PS/2 communication to PC and scanning all keys.
出处
《电脑知识与技术(过刊)》
2007年第14期409-410,共2页
Computer Knowledge and Technology
关键词
PS/2接口
双向同步协议
模块化编程
PS/2 interface
Bidirectional synchronous serial protocol
modularization process