首页 | 本学科首页   官方微博 | 高级检索  
     

基于PIC16F877的嵌入式以太网通信的设计与实现
引用本文:张帆,欧阳红林,余映天,童调生.基于PIC16F877的嵌入式以太网通信的设计与实现[J].计算机工程与应用,2003,39(32):164-166.
作者姓名:张帆  欧阳红林  余映天  童调生
作者单位:湖南大学电气工程学院,长沙,410082
基金项目:国家自然科学基金资助项目(批准号:60272051)
摘    要:在控制领域中,基于单片机的数据采集和传输日趋普及,对数据的存储和处理已不再局限于本地单片机系统,通过将以太网网络适配器功能嵌入到单片机系统中,同时加载UDP、IP和以太网协议,就可以实现本地单片机系统与以太网节点的通信,也可通过局域网实现和Internet节点的数据交换功能,从而增强了单片机系统的数据处理能力,拓展了应用范围。文章阐述了如何在UDP、IP和以太网协议的规范下,使用PIC16F877单片机与以太网节点进行全双工通信的设计与实现。单片机实现下位机功能,作为网络节点的PC机实现上位机功能。协议的加载是采用汇编语言实现的;通信采用C/S模式,下位机作为客户端,上位机作为服务器端。下位机可以接收上位机发送的单播和广播帧。

关 键 词:用户数据报协议  网际协议  以太网  RTL8019AS  DMA  I/O端口
文章编号:1002-8331-(2003)32-0164-03
修稿时间:2003年1月1日

The Design and Implementation of Embedded Ethernet Communication Based on PIC16F877
Zhang Fan Ouyang Honglin Tong Diaosheng.The Design and Implementation of Embedded Ethernet Communication Based on PIC16F877[J].Computer Engineering and Applications,2003,39(32):164-166.
Authors:Zhang Fan Ouyang Honglin Tong Diaosheng
Abstract:In the industrial control field,Data collection and transmission that base on Single Chip Micyoco have very popularized.Data processing and storing have not limited to local SCM system.The local SCM system can communicate with the Ethernet node or the Internet node by insert the function of the NIC into SCM system,and load the UDP&IP&Ethernet Protocol into local SCM system whilst.So,the ability of data processing in SCM system had been gathered head,and the bound of the application had been extended.The article expounds how to design and come true the Full-duplex communication between the PIC16F877SCM and the Ethernet node using UDP&IP&Ethernet protocol.The each aforementioned protocol have been written by assemble language.The mode of communication is Client/Server mode.Regard the SCM as client and regard the Ethernet node as Server,the SCM system can receive the omni-cast and broadcast frame that come from the Ethernet node.
Keywords:UDP  IP  Ethernet  RTL8019AS  DMA  I /O port  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号