摘要
提出了一种基于STM32CubeMX的W5500以太网通信模块快速实现方案。该方案先以STM32F407处理器SPI接口外扩W5500以太网控制器来搭建模块硬件,然后利用STM32CubeMX快速完成STM32F407初始化配置程序的设计,再利用W5500官方库函数快速完成以太网通信程序的开发,同时为提升以太网通信速率,对W5500官方库函数实施了优化。最后为了验证设计方案的有效性及测试通信速率,设计了基于LabVIEW的测试软件。实验结果表明,利用本文提出的方案可较快实现以太网通信模块的开发,且通信速率比优化前提高接近两倍。
In the paper,a fast implementation scheme of W5500 Ethernet communication module based on STM32 CubeMX is proposed.The STM32 F407 processor SPI interface is used to expand the W5500 Ethernet controller to build module hardware.The STM32 CubeMX is used to quickly complete the design of STM32 F407 initialization configuration program.The Ethernet communication program is quickly developed by the official library function of W5500.The function is optimized of the official library of W5500 to raise the communication rate of Ethernet.Finally,in order to verify the effectiveness of the design plan and test the communication rate,a test software based on LabVIEW is designed.The experiment results show that the development of Ethernet communication module can be achieved quickly by using the proposed scheme,and the communication rate is nearly two times higher than that before optimization.
作者
杨红波
朱磊
张博
鲁露
Yang Hongbo;Zhu Lei;Zhang Bo;Lu Lu(School of Electronics and Information,Xi' an Polytechnic University,Xi'an 710048,China)
出处
《单片机与嵌入式系统应用》
2018年第8期11-16,共6页
Microcontrollers & Embedded Systems