摘要
串行扩展和串行通信方式已经成为当前单片机系统扩展的主流方式。目前单片机市场上不但有传统的UART串行接口,而且还有SPI、I2 C总线等串行接口。SPI接口是一种高速串行通信接口,特别适合于单片机之间的高速通信,但其工作方式较之传统的UART串行通信方式有很大的不同。本文给出SPI接口基础上的各种串行通信工作方式配置及驱动编程,并进行完整的测试。
Serial expansion and serial communication become the mainstream way of current MCU system expansion. The microcontroller market has not only traditional UART serial interfaces,but also SPI,I2C bus serial interfaces. SPI interface is a high-speed serial com- munication interface , and it is particularly for high-speed communication between MCU. But the work mode is very different from the traditional UART serial communication. This paper introduces all kinds of serial communication work mode's configuration and driver programming, and shows the integral test.
出处
《单片机与嵌入式系统应用》
2012年第7期24-26,共3页
Microcontrollers & Embedded Systems