基于FPGA的CAN接口协议设计与实现
esign and Implementation of CAN Interface Protocol Based on FPGA
N(Controller Area Network)现场总线技术具有低成本、网络结构简单、高实时性、可靠性和可维护性等优点,已广泛应用与工厂现场设备层。Microchip公司的MCP2515为一种集成CAN协议规范的控制芯片,与其他CAN控制芯片一样,主要通过MCU驱动实现CAN接口。但是基于MCU的CAN接口存在电气参数不能兼容,通用性较差的问题。本文提出一个用FPGA实现CAN总线协议的方法,目的在于提高CAN控制器的性能和效率。通过自底而上的设计方法,先设计SPI接口,然后实现FPGA控制读写寄存器,最终调用各模块实现CAN接口的FPGA控制,并给出了相关的modelsim仿真和在线调试结果。
Having been widely used in factory field equipment layer, CAN (Controller Area Network) field bus technology has many advantages,such as low cost, simple Network structure, high real-time performance, hign reliability and high maintainability. MCP2515, product of Microchip, is a CAN control chip integrated with protocol specification. The same as the other CAN control chip, it is mainly drived by the MCU. But MCU based CAN interface has some problems like incompatible electric parameters and poor generality. In this paper, a method of using the FPGA to implement CAN bus protocol is introduced, with the purpose of improving the performance and efficiency of the CAN controller. A bottom-up method is used to desigh the approach.First, design the SPI interface, then implement reading and writing registers of the CAN chip, and finally use each module to implement the CAN interface controled by FPGA. The modelsim simulations and in-circuit debugging results are shown in this paper.
江颖洁、吕旌阳
微电子学、集成电路电子电路
信息处理技术MCP2515N现场总线FPGA
Information ProcessingMCP2515CANField busFPGA
江颖洁,吕旌阳.基于FPGA的CAN接口协议设计与实现[EB/OL].(2014-11-05)[2025-08-16].http://www.paper.edu.cn/releasepaper/content/201411-70.点此复制
评论