摘要
SPI总线是一种同步串行数据标准接口,其使用方便、协议简单及占用系统资源少,在各方面应用十分广泛。简述了SPI总线的特点、主要功能原理及其典型应用,重点描述了基于Xilinx的FPGA芯片设计的SPI程序,配置LT2632芯片的软件设计方法,给出了SPI控制状态机的设计思路,并给出了用硬件描述语言VHDL实现SPI接口的部分程序。通过FPGA仿真和实验,验证了设计方法的正确性和可行性,同时具有较好的可扩展性和维护性。
The SPI bus is a kind of synchronous serial data standard interface with such characteristics as simple protocol and occupation of less system resources.This paper describes in brief the characteristics,main function principle and typical application of SPI bus,and discusses in detail the SPI program designed based on Xilinx FPGA chip and the software design method of configuring LT2632 chips.The SPI control state machine design is introduced.A part of the VHDL hardware description language program used to implement the interface is given.At last,the FPGA simalation and experiment results show that this design is correct and feasible,has a good scalability and maintainability.
出处
《计算机与网络》
2016年第15期64-66,共3页
Computer & Network
关键词
接口
SPI
串行通信
interface
SPI
serial communication