基于STM32与W5500的嵌入式以太网系统.doc
文本预览下载声明
湖南工业大学本科毕业设计(论文)
PAGE 34
PAGE II
摘 要
随着计算机通信技术和网络技术的发展,在嵌入式系统中集成以太网口,来实现与其它计算机设备之间的高速数据传输就显得更加的重要了。越来越多的计算机系统都迫切的需要和其它计算机系统进行联网,以达到共享数据,统一管理的目的。因此除了通常的使用PC机的内部网卡接入以太网外,许多的嵌入式系统也需要直接联入以太网,与其它联网的设备实现数据共享的目的。采用STM32微控制器和W5500芯片搭建的网络系统,结构简单、易于实现。
本文首先介绍了目前以太网技术的日前基本情况以及以太网技术在嵌入式系统中的应用现状。再者提供了以太网的应用模型,介绍了各个层次的网络协议。然后结合以太网接口芯片W5500的主要特点、芯片引脚定义、内部寄存器使用说明,提出了这种芯片与嵌入式处理器的硬件接口设计和底层收发程序的编程思路。接着针对嵌入式系统所需要完成的以太网通信的基本要求,从软件设计的角度介绍了一些必须实现的基本网络协议如TCP、UDP等协议的祯格式和主要特点。
该嵌入式以太网系统是基于STM32芯片与W5500高速以太网控制芯片的 ,它充分发挥了 STM32 芯片的 Cortex-M3 内核低成本低功耗的特性,同时该设计直接使用 W5500固化的TCP/IP协议站,对系统性能有了很大提升。
关键词:以太网;以太网接口;W5500芯片
ABSTRACT
With the development of computer communication technology and network technology, at the mouth of the embedded system in integrated Ethernet to achieve high-speed data transmission and other computer equipment becomes more important.?More and more computer systems are urgently needed and other computer systems networking, in order to achieve data sharing and unified management.?So in addition to the usual use of PCs internal network card access Ethernet, many embedded systems also need to directly connected to the Ethernet, and other network equipment to achieve the purpose of data sharing.?The structure of the network system is simple and easy to implement with the STM32 microcontroller and W5500 chip..
First of all, this paper introduces the current application situation of Ethernet technology recently basic situation and Ethernet technology in embedded system.?Moreover, the application of Ethernet is provided, and the network protocols are introduced..?And then combined with the main characteristic of Ethernet interface chip w5500, chip pin definition, internal register instructions for use, and put forward the idea of programming of the chip with embedded processor interface hardware design and the driver to send and receive procedures.?Then for embedded systems need the basic requirement of the Ethernet communication, from the point of view of software design int
显示全部