摘要
在控制领域中,基于单片机的数据采集和传输日趋普及,对数据的存储和处理已不再局限于本地单片机系统,通过将以太网网络适配器功能嵌入到单片机系统中,同时加载UDP、IP和以太网协议,就可以实现本地单片机系统与以太网节点的通信,也可通过局域网实现和Internet节点的数据交换功能,从而增强了单片机系统的数据处理能力,拓展了应用范围。文章阐述了如何在UDP、IP和以太网协议的规范下,使用PIC16F877单片机与以太网节点进行全双工通信的设计与实现。单片机实现下位机功能,作为网络节点的PC机实现上位机功能。协议的加载是采用汇编语言实现的;通信采用C/S模式,下位机作为客户端,上位机作为服务器端。下位机可以接收上位机发送的单播和广播帧。
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.
出处
《计算机工程与应用》
CSCD
北大核心
2003年第32期164-166,共3页
Computer Engineering and Applications
基金
国家自然科学基金资助项目(批准号:60272051)