(精品word)基于RS485总线的多机通信系统设计.doc
上传人:17****21 上传时间:2024-09-09 格式:DOC 页数:35 大小:393KB 金币:5 举报 版权申诉
预览加载中,请您耐心等待几秒...

(精品word)基于RS485总线的多机通信系统设计.doc

(精品word)基于RS485总线的多机通信系统设计.doc

预览

免费试读已结束,剩余 25 页请下载文档后查看

5 金币

下载此文档

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

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

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

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

(精品word)基于RS485总线的多机通信系统设计(精品word)基于RS485总线的多机通信系统设计--(精品word)基于RS485总线的多机通信系统设计摘要在多机通信领域.由于单片机具有灵活高效的多机通信功能和价格优势,应用越来越广泛,但由于单片机的收发信号都是TTI电平,驱动能力和抗干扰性有限,实用中常配合其它总线实现互联,RS—485总线就是其中之一。RS—485总线是平衡差分传输,抗干扰性好,最远可传输4000m,可互联多达128个单片机,非常适台组成多机通信系统。在多机通信中,最重要的是保证通信有条不紊地进行,因此需要严格的通信协议和完善的通信软件,本文将重点介绍应用于某大型工程的单片机多机通信协议和通信软件的设计方法。本文介绍一种利用单片机本身所提供的串行通讯口,采用自定义串行通信协议,加上总线驱动器如MAX481、MAX483、MAX485、MAX487等组合成简单的RS-485通讯网络,完成单片机间的多机通讯.关键词:单片机;串行通信;RS-485总线:多机通信协议AbstractIncomputercommunicationfield。Becauseofthesinglechipmicrocomputerhasflexibleandefficientcomputercommunicationfunctionandpriceadvantage,usedmoreandmorewidely,butbecauseofthesinglechipmicrocomputertosendandreceivesignalsareTTIlevel,driveandanti—interferenceabilityislimited,practicalcooperationwithotherbusrealizeinInternet,RS-485busisoneofthem.RS—485busisabalanceddifferentialtransmission,anti—jammingofthegoodandasfaras4000mcouldbetransmitted,interconnectedasmanyas128singlechipmicrocomputer,verycomfortableacompositioncomputercommunicationsystem.Incomputercommunication,themostimportantistoensurethatcommunicationsinanorderlyway,andthereforeneedtostrictcommunicationprotocolandperfectcommunicationsoftware,thispaperwillfocusonintroducesappliedinalargeprojectsingle—chipcomputercommunicationassociationPutthecommunicationsoftwaredesignmethod.Thispaperintroducesamicrocontrolleritselfprovidetheserialcommunicationmouth,usecustomserialcommunicationprotocol,plusthebusdrivesasMAX481,MAX483,MAX485,MAX487combinedintosimpleRS-485communicationnetwork,finishbetweenthesinglechipcomputercommunication。Keywords:SCM;Serialcommunication;RS—485bus:computercommunicationagreement目录TOC\o"1—3"\h\z\uHYPERLINK\l”_Toc326850673"第1章绪论PAGEREF_Toc326850673\h1HYPERLINK\l”_Toc326850674"1。1课题研究背景与意义PAGEREF_Toc326850674\h1HYPERLINK\l”_Toc326850675”1。2单片机多机通信发展PAGEREF_Toc326850675\h1HYPERLINK\l"_Toc326850676"第2章总体介绍PAGEREF_Toc326850676\h3HYPERLINK\l”_Toc326850677”2.1系统组成PAGEREF_Toc3