摘要
叙述了SPI协议在DSP芯片上的实现方法。针对TMS320F2812在系统设计中扩展SPI(串行外围设备接口)的要求,论述了用McBSP实现SPI从设备的思路及其具体过程。通过McBSP的MCLKXA、MFSXA、MDXA、MDRA 4个引脚实现SPI连接,设置CLKSTP位、CLKXP位和CLKRP位配置SPI工作方式。为提高CPU的效率,发送和接收都采用FIFO方式和中断方式。指出用McBSP实现SPI的设计要点,并给出具体实现C程序。
This paper introduces a realization method for SPI protocol on DSP chip, and discusses the realization idea and process of SPI with McBSP used as a slave device for the SPI extension on TMS320F2812 system design. The SPI hardware interface circuit is implemented with McBSP four signal pins: MCLKXA, MFSXA,MDXA, MDRA. Bits CLKSTP, CLKXP, CLKRP are used to configure the SPI operation mode. Transmit and receive operation uses FIFO and interrupt mode to improve the CPU efficiency. The key design points of SPI realization with McBSP and C source program are given.
出处
《信息化研究》
2009年第7期58-61,共4页
INFORMATIZATION RESEARCH
关键词
SPI
串行接口
DSP
MCBSP
SPI
serial interface
digital signal processor
muhichannel buffered serial port