资源描述:
《嵌入式网络测控系统》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、嵌入式网络测控系统[摘要]目前,以太网(Ethernet)协议已经非常广泛地应用于各种计算机网络,如办公局域网、工业控制网络、因特网等场合,并且还不断地发展。随着电子科技技术的发展,基于以太网的新技术和联网设备不断出现,以太网已经成为事实上最常用的网络标准之一。并且随着Internet网络的覆盖率的提高,越来越多的工业测控设备已经将网络接入功能作为其默认配置,以实现设备的远程监控和信息分布式处理。本文主要研究了网卡驱动程序的编写TCP/IP协议的精简和PC上位机软件应用程序的编写。本设计硬件主要由AT89S52和D
2、M9008组成,单片机AT89S52作为控制器来控制DM900收发数据。软件设计主要由网卡驱动程序、嵌入式TCP/IP协议栈以及PC上位机数据处理软件组成,来实现数据包的收发和处理。此方案不仅成本低,而且可以实现500Kbps以上的传速率,满足了嵌入式系统的Internet控制要求;在局域网内能进行全双工的短消息发送。[关键词]嵌入式系统;TCP/IP协议;DM9008;单片机88MeasureandcontrolsystemwithembeddedinNetwork[Abstract]Atpresent,Ethe
3、rnetagreementhasbeenverywidelyusedinvariouscomputernetworks,suchastheofficeLAN,industrialcontrolnetworks,theInternetandotheroccasions,andalsoconstantlyevolving.Withthedevelopmentofelectronictechnologies,Ethernet-basednetworkingequipmentandnewtechnologiesemergi
4、ng,Ethernethasbecomeamatteroffactthemostcommonlyusednetworkstandardone.WiththeInternetandtheimprovementofnetworkcoverage,anincreasingnumberofindustrialmeasurementandcontrolequipmenthaveInternetaccessfunctionasitsdefaultconfiguration,inordertoachievetheremotemo
5、nitoringequipmentandinformationdistributedprocessing.ThispaperonacardpreparedbythedriveroftheTCP/IPprotocoltostreamlinethePCandPCsoftwareapplicationsinthepreparation.ThehardwaredesignofthemaincomponentsfromAT89S52andDM9008,SCMAT89S52asacontrollertocontroltheDM
6、900sendandreceivedata.SoftwaredesignmainlybytheNICdrivers,embeddedTCP/IPprotocolstackPCandthePCdataprocessingsoftwarecomponents,toachievethepacketsandsendandreceivetreatment.Thisprogrammenotonlylowcost,andcanachieve500Kbpsover-ratetomeettheembeddedsystemofInte
7、rnetcontrolrequirementsinfull-duplexLANtobeabletosendashortmessage.[KeyWords]EmbeddedSystems;TCP/IPprotocol;DM9008;Micro-computer88目录0引 言11方案论证与比较41.1网卡控制芯片方案论证与选择41.2嵌入式微控制器(MCU)方案论证与选择41.3键盘电路的设计方案论证与选择62系统组成73模块设计83.1显示模块设计83.1.1FYD-12864-0402B概述83.1.2FYD-
8、12864-0402B模块串口接口说明83.1.3FYD-12864-0402B模块控制器接口信号说明93.1.4FYD-12864-0402B模块指令说明93.1.5FYD-12864-0402B模块电路连接图123.1.6FYD-12864-0402B程序设计123.2PS/2键盘模块153.2.1PS/2物理连接器153.2.2PS/2电气特性153.