论文部分内容阅读
为了给嵌入式系统提供一个节省资源且体积微小的网络通信模块,在移植了uC/OS-II实时操作系统的基础上,设计并实现基于嵌入式以太网控制器ENC28J60和uIP协议栈的嵌入式TCP/IP协议通信模块,详述ENC28J60寄存器配置方法,提供芯片初始化代码,实现ENC28J60驱动程序并给出uIP协议的使用方法。另外,针对uIP在UDP通信过程中存在的问题提出一种解决思路并予以实现。测试结果显示,PC机和开发板之间能够建立TCP连接,可以进行UDP通信。
In order to provide a resource-saving and small-sized network communication module for embedded system, based on the transplantation of uC / OS-II real-time operating system, an embedded embedded controller based on Ethernet ENC28J60 and uIP protocol stack TCP / IP protocol communication module, detailing ENC28J60 register configuration method, providing chip initialization code to achieve ENC28J60 driver and gives the use of uIP protocol. In addition, a solution to the problem of uIP in UDP communication is proposed and implemented. Test results show that the PC and the development board can establish a TCP connection, UDP communication can be carried out.