摘要
介绍计算机与设备、设备与其他模块间的通信。采用带有USB微控制器单片机芯片AT89C5131为通信的控制核心。AT89C5131是Atmel公司推出的芯片,有较快的处理速度和较大的存储容量,还可以在系统编程,是USB接口设计的理想选择。合理设计其外围电路并用Keil Uvision 3开发固件程序,主要针对USB接口、SPI接口和键盘接口的设计与程序开发。实现计算机和设备控制面板对设备的双重控制,以及计算机通过AT89C5131使用SPI等通信协议与其他设备模块的通信。这里将USB接口通信的输入与输出通道分割开来,提高了通信速度。
Communication between computer and device,and communication between device and other modules are introduced. AT89C5131 with USB device controller is used as the processor which is produced by Atmel Corporation and has higher process speed and larger memory capability. AT89C5131 also allows in - system programming and it is a perfect choice for USB interface design. The peripheral circuit is designed rationally and the hardware program is developed with Keil Uvision 3, mainly about the design and development of USB, SPI and keyboard interface. It implements the double control from computer and device control panel to device and the communication between computer and other device module through AT89C5131 using SPI or other communication protocols. The input and output of USB interface communication is divided up, which improves the communication speed.
出处
《现代电子技术》
2009年第12期28-30,共3页
Modern Electronics Technique
关键词
端口特性
USB通信
SPI通信
键盘设计
port characteristics
USB communication
SPI communication
keyboard design