文档详情

基于以太网控制器LAN91C111的_c_TCP_IP网络接口通信实现.pdf

发布:2017-06-15约1.5万字共3页下载文档
文本预览下载声明
年 月 第 期 2010 12 电 脑 学 习 6 基于以太网控制器LAN91C111 的μc蛐TCP-IP 网络接口通信实现 孙 静觹 摘 要:本文介绍了μ c蛐TCP-IP 协议栈和在μ c蛐OS-II 上的移植,详细描述了基于以太网控制器LAN91C111 的μ c蛐TCP-IP 的 网络接口,以及网络接口驱动程序的编写方法。 关键词:LAN91C111; μ c蛐TCP-IP; 网络接口通信 中图分类号:TP393 文献标识码: B 文章编号:1002-2422 (2010)06-0052-03 Implement of Network Interface Communication Apply μc蛐TCP-IP Based on Ethernet Controller LAN91C111 Sun Jing Abstract: The paper introduces the μ c蛐TCP-IP protocol stack and in the μ c蛐OS-II on migration, and describes network in- terface based on ethernet controller LAN91C111 in μ c蛐TCP-IP in detailed, and gives network interface driver soft- ware methods. Key words: LAN91C111; μc蛐TCP-IP; Communication Network Interface 1 μ c蛐TCP-IP 协议 2.2 μ c/TCP-IP 与NIC 接口的设计 [1][4] μ c蛐TCP-IP 是一个经过压缩的、可靠的、高性能的 图2 表示μ c蛐TCP-IP 与NIC 接口 ,CPU 通过定义在 [1] NIC 内的一系列寄存器与NIC 连接,每个寄存器里有唯一 TCP-IP 协议栈 ,是Guy Lancaster 基于 μ c蛐OS-II 操作系 统编写的,全部代码均采用 ANSI C ,具有非常好的移植 的ID 或地址(0..N-1)来标识。图2 表示了与NIC16 位寄 性,能够用于不同的CPU、需要RTOS (Real-Time Operating 存器的接口,在net-bsp.c 里定义了两个函数:NetNIC_Rd16 Systems)的支持。目前μ C蛐TCP-IP 仅支持以太网类型接口 ()和NetNIC_Wr16 ()。 控制器,简称NIC ((Network Interface Controllers)。 NetNIC_Wr_16( )
显示全部
相似文档