摘要
为了可以灵活地在现有C6000系列DSP芯片上扩展多路SPI外围设备,提出了一种基于FPGA和EMIFA接口的多路SPI控制器系统方案;该方案采用C6000系列DSP上的EMIFA接口与FPGA进行数据交互,扩展出多路SPI控制器;在FPGA上实现了接口模块、寄存器读写模块以及多路通用SPI模块;在ModelSim环境下对所设计的SPI控制器进行了仿真实验,仿真结果表明SPI控制器可以与SPI接口外设芯片进行全双工通信;随之,在DSP-FPGA集成计算机上对系统进行了实物测试,扩展出来的SPI控制器外接具有SPI接口的CAN控制器芯片MCP2515,通过扩展的SPI控制器控制MCP2515的数据收发,测试结果显示DSP可以通过MCP2515与其它CAN设备进行通信,表明扩展的SPI控制器工作正常。
In order to extend multiple SPI peripheral devices based on current C6000 series DSP chips,this article presents a multi-channel SPI controller system solution based on FPGA and EMIFA interface.By utilizing the EMIFA interface in C6000 series DSP chips,an interface through which DSP can communicate with FPGA,multiple SPI controllers can be extended on FPGA.Interface module,register module and multiple generic SPI modules are implemented on FPGA.Simulation experiments are done under ModelSim environment,the result shows SPI controller can communicate with the SPI interface peripheral chips in full-duplex mode.Finally,real tests are conducted on a DSP-FPGA embedded computer.A CAN controller chip with SPI interface,MCP2515,is connected to an extended SPI controller,using which to control MCP2515.The result shows DSP can communicate with other CAN device through MCP2515,which means the extended SPI controller works normally.
作者
杨宇科
王保成
Yang Yuke;Wang Baocheng(Academy of Opto-Electronics, Chinese Academy of Sciences, Beijing100094, China;University of Chinese Academy of Sciences, Beijing100049, China)
出处
《计算机测量与控制》
2019年第5期82-86,共5页
Computer Measurement &Control