随着嵌入式系统的飞速发展,嵌入式PC 得到了广泛应用。标准的PC 键盘由于体积大,按键多等原因在多数情况下不能满足要求。本文在介绍PS/2 通信协议的基础上,利用AT89C52 实现了一种PC 非标准键盘的设计。给出了其完整的硬件实现电路图和主要的软件开发方法。该键盘具有结构简单、工作稳定、便于扩展等特点,并已在某型航空图像回传系统中得到具体应用。 关键词:键盘,PS/2 协议,单片机,嵌入式系统 Abstract: with the rapid development of embedded system, embedded PC has been used widely in most fields. With its large buck and excessive keys, the standard keyboard for PC doesn’t meet users’ demands. This paper firstly introduces the PS/2 communication protocol, and then uses the AT89C52 microprocessor to design a PC nonstandard keyboard successfully. The hardware circuit diagram and the main software developing method are given out with details. The designed keyboard has the advantages of simple structure, and can work steadily, and is also easy to extend. It has been used in an aeronautic image transmission system practically. Keywords: keyboard, PS/2 protocol, single chip microprocessor, embedded system