计算机应用 ›› 2012, Vol. 32 ›› Issue (05): 1247-1250.

• 网络与通信 • 上一篇    下一篇

基于FPGA的嵌入式Ethernet-CAN通信转换卡设计

王方方1,易灵芝1,陈海燕1,陆启湘2   

  1. 1. 湘潭大学 信息工程学院,湖南 湘潭 411105
    2. 南京佳品数控设备有限公司 研发中心,南京211504
  • 收稿日期:2011-11-01 修回日期:2011-12-14 发布日期:2012-05-01 出版日期:2012-05-01
  • 通讯作者: 王方方
  • 作者简介:王方方(1984-),男,山东菏泽人,助理工程师,硕士研究生,主要研究方向:电力电子装置;易灵芝(1966-),女,湖南宁乡人,教授,主要研究方向:新能源发电控制、交流调速与电力电子装置;陈海燕(1983-),女,贵州铜仁人,助理工程师,硕士研究生,主要研究方向:电力电子装置;陆启湘(1944-),男,美籍华人,高级工程师,硕士,主要研究方向:交流伺服驱动与数控系统。
  • 基金资助:

    湖南省自然科学湘潭联合基金资助项目(11JJ8004);教育部课题资助项目(2009-ZX-052);湖南省科技厅资助项目(2010FJ3116)

Design of embedded Ethernet-CAN communication card based on FPGA

WANG Fang-fang1,YI Ling-zhi1,CHEN Hai-yan1,LU Qi-xiang2   

  1. 1. College of Information Engineering, Xiangtan University, Xiangtan Hunan 411105, China
    2. Research and Development Center, Nanjing Champion CNC Equipment Corporation Limited, Nanjing Jiangsu 211504, China
  • Received:2011-11-01 Revised:2011-12-14 Online:2012-05-01 Published:2012-05-01
  • Contact: WANG Fang-fang

摘要: 为实现CAN总线与PC通信,便于CAN总线数据的远程监控,提出一种新的基于现场可编程门阵列(FPGA)的多路CAN总线转Ethernet接口方案,以嵌入FPGA的NiosⅡ作为主控制器,MCP2515为CAN总线控制器,88E1111为以太网PHY芯片。利用可编程片上系统(SOPC)技术搭建了系统的硬件模型,在NiosⅡ IDE软件开发环境中,完成CAN控制器、以太网初始化和Ethernet-CAN转换程序。以数控系统中交流伺服驱动器为应用背景,实验结果表明:该转换卡完全满足以太网和CAN总线通信要求,方便地将CAN总线数据接入工业以太网,用户通过网络可方便地实现对工业底层的监控。

关键词: 现场可编程门阵列, CAN总线, 嵌入式以太网, TCP/IP协议, 交流伺服驱动器

Abstract: In order to realize the CAN bus communication with PC and remote monitoring, a design method of the embedded Ethernet-CAN communication transform card based on FPGA was proposed. The design chose the embedded soft processors Nios Ⅱ in FPGA as the main control chip, MCP2515 as the CAN bus controller and 88E1111 as the Ethernet PHY chip. A system hardware model was built with the SOPC (System-On-a-Programmable-Chip) technology, and the CAN controller, Ethernet initialization and the Ethernet-CAN conversion process were completed in the Nios Ⅱ IDE (Integrated Development Environment).The experimental results show that the design completely meets the requirements of the Ethernet and CAN bus communication.

Key words: Field Programmable Gate Array (FPGA), Controller Area Network (CAN) bus, embedded Ethernet, TCP/IP protocol, AC servo driver

中图分类号: