预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共52页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

PAGEPAGE48武汉工程大学毕业设计(论文)说明书摘要小局域网多机通信在如食堂刷卡收费管理系统、汽车加油刷卡系统、电能运输秒表管理系统等领域应用广泛。因此,开展本领域的研究有较好的应用前景。本文主要采用一种以PC机作为上位机,多台80C51单片机作为下位机,来进行上位机与下位机以及下位机与下位机的通信的研究。主要包括:系统总体方案设计;在PC机端,通过专用的RS232/485标准转换芯片S2-485将RS-232电平转换成RS-485电平,在80C51单片机端,通过MAX485转换芯片将TTL电平转换成RS-485电平,来实现上位机与下位机以及下位机与下位机的通信;在系统硬件设计的基础上,制定了通信协议。为了达到使传输数据的准确性,开展了数据传输的错误检查与纠正,以及系统可靠性方面的研究;进行了PC机与下位机,以及下位机与下位机的软件编程、程序调试,实现了系统多机通信的数据传输。关键词:PC机;单片机;RS-485;数据传输;多机通信AbstractMulti-machinecommunicationshaveawiderangeofapplicationsinsmalllocalnetwork,suchasmanagementsysteminthecanteenforchargesofcreditcard,inthegasstationforrefueling,inthetransportofenergyforstopwatchtiming.Therefore,therearegoodprospectstocarryoutresearchinthisarea.Thisarticleusespcmachineasahostcomputerandmultiple80C51single-chipsasslavemicrocomputerstocarryoutthestudyofcommunicationsbetweenPCandlowermachine,aswellaslowermachines.Thearticleincludesanoveralldesigningplan.IntheportofthePC,usingaS2-485,dedicatedRS232/485converterchip,convertstheRS-232levelintotheRS-485level.Intheportof80C51single-chip,MAX485willbeusedtoconvertTTLlevelintoRS-485level.Inthisway,communicationscanbeachievedbetweenPCandlowermachine,aswellaslowermachines.Inthebasisofhardwaredesign,thecommunicationalprotocoliscarriedout.Inordertoachievetheaccuracyofthedatatransmission,theerrorcheckingandcorrectionisimplemented,aswellasthestudyofreliability.Aftersoftwareprogrammingandprogramdebugging,thesystemcanachievedatatransmissionbetweenPCmachineandsingle-chip,aswellassingle-chips.Keywords:PCMachine;Single-chip;RS-485;DataTransmission;Multi-machineCommunication目录TOC\o"1-2"\h\z\uHYPERLINK\l"_Toc232953534"摘要PAGEREF_Toc232953534\hIHYPERLINK\l"_Toc232953535"AbstractPAGEREF_Toc232953535\hIIHYPERLINK\l"_Toc232953536"第一章绪论PAGEREF_Toc232953536\h1HYPERLINK\l"_Toc232953537"1.1引言PAGEREF_Toc232953537\h1HYPERLINK\l"_Toc232953538"1.2研究的背景及意义PAGEREF_Toc232953538\h1HYPERLINK\l"_Toc232953539"1.3论文的主要内容PAGEREF_Toc