《机电工程》杂志,月刊( 详细... )

中国标准连续出版物号 ISSN 1001-4551 CN 33-1088/TH
主办单位浙江省机电集团有限公司
浙江大学
主编赵 群
副 主 编唐任仲、罗向阳(执行主编)
总 经 理罗向阳
出 版浙江《机电工程》杂志社有限公司
地 址杭州市上城区延安路95号浙江省机电集团大楼二楼211、212室
电话Tel+86-571-87041360、87239525
E-mailmeem_contribute@163.com
国外发行中国国际图书贸易总公司
订阅全国各地邮局   国外代号M3135
国内发行浙江省报刊发行局
邮发代号32-68
广告发布登记证:杭上市管广发G-001号

在线杂志

当前位置: 机电工程 >>在线杂志

基于ENC28J60以太网通信接口的设计与实现

作者:张伟业1,黄云龙2,陈国定1 日期:2008-02-25/span> 浏览:3233 查看PDF文档

基于ENC28J60以太网通信接口的设计与实现

张伟业1,黄云龙2,陈国定1
(1.浙江工业大学 信息工程学院,浙江 杭州 310014; 2.浙江工业大学浙西分校 电子与信息工程系,浙江 衢州 324006)

摘要:利用新型器件ENC28J60作为以太网控制器,采用PIC18F4550作为主控制器,通过SPI接口实现了与ENC28J60之间的高速通信;在主控器上移植了Microchip TCP/IP协议栈,分别建立了基于UDP和TCP的应用程序,实现了以太网的通信接口,给出了ENC28J60与PIC18F4550连接的应用电路,并把该通信接口应用到电脑绣花机监控系统中,用于接收局域网上的远程主机发来的花样文件并转发给绣花机的控制器。
关键词:以太网;ENC28J60;串行外围接口
中图分类号:TP393文献标识码:A文章编号:1001-4551(2008)01-0028-03

Design and realization of Ethernet communication interface based on ENC28J60
ZHANG Weiye1, HUANG Yunlong2, CHEN Guoding1
(1.College of Information Engineering, Zhejiang University of Technology, Hangzhou 310014, China;
2.Department of Information and Electronic Engineering, West Branch of Zhejiang University of Technology, Quzhou 324006, China)
Abstract: As the chief controller, PIC18F4550 was designed to communicate with the new Ethernet controller ENC28J60 by SPI interface. The Microchip TCP/IP stack was replanted in the PIC18F4550, two applications based on TCP and UDP were created, an Ethernet interface was realized. The application circuit that the ENC28J60 communicated with the PIC18F4550 was given. The interface was applied in computer embroidery machine control system, for receiving clock files from PC in the LAN and transforming them to the controller of embrosdery.
Key words: Ethernet; ENC28J60; serial peripheral interface (SPI)
参考文献(Reference):
[1]Microchip Technology Inc. ENC28J60 Stand Alone Ethernet Controller with SPI Interface[EB/OL]. [2004-10-20]. http://www.microchip.com.
[2]Microchip Technology Inc. Microchip TCP/IP stack[EB/OL]. [2002-05-16]. http: // www.microchip.com.
[3]王廷尧.以太网技术与应用[M].北京:人民邮电出版社,2005.
[4]赵小敏,陈庆章.TCP/IP网络原理与技术[M].北京:高等教育出版社,2006.
[5]RAJENDRA Y, PRASHANT P, RAPHAEL F. A reservationbased CSMA protocol for integrated manufacturing networks[J]. IEEE Transactions on Systems, Man, and Cybemetics,1994,24(8):1247-1258.
[6]陈磊,冯冬芹,金建祥,等.以太网在工业应用中的实时特性研究[J].浙江大学学报:工学版,2004,38(6):29-31.



友情链接

浙江机械信息网