基于FPGA的RS422转以太网的设计与应用

文丰, 张晋铭, 张凯华

集成电路与嵌入式系统 ›› 2022, Vol. 22 ›› Issue (10) : 58-61.

PDF(1159 KB)
PDF(1159 KB)
集成电路与嵌入式系统 ›› 2022, Vol. 22 ›› Issue (10) : 58-61.
新器件新技术

基于FPGA的RS422转以太网的设计与应用

  • 文丰, 张晋铭, 张凯华
作者信息 +

Design and Application of RS422 to Ethernet Based on FPGA

  • Wen Feng, Zhang Jinming, Zhang Kaihua
Author information +
文章历史 +

摘要

在数据传输领域,UART作为可靠的传输协议被广泛使用,但是其通信接口RS422已经逐渐被PC机淘汰。针对这一问题,设计并实现了RS422到以太网的转换和传输。该设计以FPGA为控制核心来实现RS422和以太网转换的片上集成,在硬件设计上,RS422和以太网分别采用ADM2682EBRIZ和88E1111作为物理层;软件设计上,通过编写硬件描述语言和使用IP核完成对UART、UDP、IP、ARP和MAC模块的设计,将存储器中的数据通过UART缓存至FIFO中,并在UDP/IP协议下以太网各模块完成对数据报的帧封装,再通过物理层、网络变压器和RJ45水晶头将数据包上传到地面综合测控台的上位机软件。经过仿真实验和上位机数据处理验证,该设计能够完成RS422到以太网的转换和传输,对数据进行回读分析后丢帧率为0。

Abstract

In the field of data transmission,UART is widely used as a reliable transmission protocol,but its communication interface RS422 has been gradually eliminated by PC.Aiming at this subject,the conversion and transmission from RS422 to Ethernet are designed and realized.The design takes FPGA as the control core to realize the on-chip integration of RS422 and Ethernet conversion.In the hardware design,ADM2682EBRIZ and 88E1111 are used as the physical layer of RS422 and Ethernet respectively.In terms of software design,the design of UART,UDP,IP,ARP and MAC modules are completed by writing hardware description language and using IP core,the data in the memory is cached into FIFO through UART,and the frame encapsulation of datagram is completed by Ethernet modules under UDP/IP protocol,and then the data packet is uploaded to the host computer software of ground integrated measurement and control platform through physical layer,network transformer and RJ45 crystal head.Through the simulation experiment and the data processing verification of the host computer,the design can complete the conversion and transmission from RS422 to Ethernet, and the frame loss rate is 0 after the data is read back and analyzed.

关键词

UART / ADM2682EBRIZ / 88E1111 / UDP/IP / FPGA / ARP

Key words

UART / ADM2682EBRIZ / 88E111 / UDP/IP / FPGA / ARP

引用本文

导出引用
文丰, 张晋铭, 张凯华. 基于FPGA的RS422转以太网的设计与应用[J]. 集成电路与嵌入式系统. 2022, 22(10): 58-61
Wen Feng, Zhang Jinming, Zhang Kaihua. Design and Application of RS422 to Ethernet Based on FPGA[J]. Integrated Circuits and Embedded Systems. 2022, 22(10): 58-61
中图分类号: TP274   

参考文献

[1] 冯园园,张倩.嵌入式FPGA技术发展现状及启示[J].集成电路应用,2018,35(8):14.
[2] 王庆贺,吴超,唐顺晨,等.基于DSP的以太网RS422通信转换器的设计与实现[J].电子质量,2020(1):2629,35.
[3] 陈晓敏.基于FPGA的多通道模数混合采编与传输设备的设计[D].太原:中北大学,2021.
[4] 张宇,文丰,杨志文,等.Flash阵列无效块管理优化设计[J].电子器件,2019,42(5):12841288.
[5] 李宗正,梁永林.对以太网供电中高频脉冲网络变压器选用不当的担忧[J].科技创新导报,2015,12(21):6264.
[6] 张浩森,国晨,孙凯邁,等.双绞线的模式转换特性对车载以太网EMI影响分析[J].中国汽车,2021(10):4752.
[7] 张岩,文丰,贾兴中.数据传输链路的数字量通信模块设计[J].单片机与嵌入式系统应用,2022,22(3):7882,87.
[8] 郭天艳.TCP/IP协议简要分析[J].中国新通信,2015,17(9):2223.
[9] 崔鹤,刘云清,盛家进.基于FPGA的UDP/IP协议栈的研究与实现[J].长春理工大学学报(自然科学版),2014,37(2):133137.
[10] 朱明辉,司斌,张从霞,等.FPGA与88E1111的千兆以太网接口设计[J].单片机与嵌入式系统应用,2017,17(3):6063,66.
[11] 文丰,韩雨龙.千兆以太网MAC控制器软核设计[J].电子测量技术,2021,44(1):150155.
[12] 安国臣,侯炎坤,王新刚,等.基于FPGA的万兆比特IP核接口与应用[J].电子器件,2020,43(4):928933.

PDF(1159 KB)

Accesses

Citation

Detail

段落导航
相关文章

/