已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
SerialcommunicationinterfaceRS-232andRS-485isthenormallyusedinterfacesatanytime,itnotonlybuiltineveryPC-set,butalsobuiltinanytypesofcomputerswhicharefrommicrocontrollertohostcomputers,andequipmentconnectedwiththem.ThegeneralusageofRS-232istoconnectamodern,theotherarrangementswithRS-232interfacesincludeprinter,datacollectionmodule,testingdeviceandcontrolloop.RS-232canbealsousedinthesimplelinkofanytypeofcomputer.But,RS-485canbelinkwithseveraldevicesbymeansofalonglead,ithavesamefunction.RS-232isdesignedtodealwiththecommunicationbetweentwoarrangementswithdistancelimitationfrom50to100ft,whichdependonPotterrateandtypeofelectriccable.BecauseofwideapplicationofRS-232port,itsotherusageistolinkanothertypeofadapterconvertedformtheport.Forexample,asimpleloopchangesaRS-232intoaRS-485port.Theportcanbelinkwithseveraldevicesbymeansofalonglead.Non-equilibriumleadisusedtolinkedtoRS-232.Althoughnon-equilibriumshouldsomethingavoidable,itonlyreferstotheelectricpropertyofthesignalinlead.Inanon-equilibriumlead,signalvoltageisappliedtoanotherlead,allhasanothertechnicalterm“signalend”.AdvantagesinRS-232RS-232isusedeverywhere.EveryPC-sethasoneormoreRS-232ports.TherenewedcomputerssustainotherserialinterfaceslikeUSB.ButRS-232candomanythingswhichUSBcantdo.Inthemicro-controllerinterfacechipcanbeeasilyusedtochangeintoRS-232.Thejointingdistancecanreach50-100ft.Manyexternalinterfacesarenotusedfortoolongdistance.ThelongestdistancejointofUSBcanreach16ft.ThedistancebetweenparallelprinterinterfaceonthePC-setandthehostcomputercanreach10to15ft,or30ftbyusingTypeTEEE-1284Bdriver.ButRS-232canusethelongerelectriccable.IfeveryRS-232portislinkedwithamodern,Telephonenetworkcanusedtosenddataintherageoftheworld.Foradoublelink,3leadsareneeded.Aparallelcircuitgenerallyneeds8datalines,twoormorecontrolsignallinesandgroundwires。Itismoreexpensiveifmoreleadsandbiggerconnectorsareused.DisadvantagesinRS-232Ifonesideoflinkneedsparalleldata,ithastotransformserialintoparalleldata.ButifitiseasilyrealizedaUARTisused.Becauseoftheserialportsouseful,itismaybehardertolookforafreeserialportPC-setmayhavemanyserialports,butasystemmaybecantdistributeasolebreakingenquiringsignaltoeveryserialport.Mostmicro-controlleronlyhasonehardwareserialport.Nomorethan2setinonelink.Thebiggestdesignatedtransmittingrateofdatais2000bits/s.Butmanyinterfacechipcansurpassthisnumericalvalue,especiallyintheshortdistancelink.Alongerlinkneedsadifferentinterface.3basicsignalsofthedoubleRS-232communicationasfollows:TD.TransformdataDTEtoDCEItsalsocalledTXandTXD.RD.TransformdataDCEtoDTEItsalsocalledRXandRXD.SG.Signalland.ItsalsocalledGNDandSGND.VoltageLogic0isapositiveRS-232voltage,thelogicelectriclevelofRS-232isindicatedwithpositive-negative,andnotonlyusethepositivevoltagesignalofthe5VTTLandCMOSlogictoindicate.Inthedatalogger(TD)ofRS-232,alogic0isdefinedequaltoorhigherthan+5V,andaLogic1definedequalto-5Vorlowerthan-5V.Inanotherword,signalusethenegativelogic,inthislogic,thenegativevoltageisLogic1.Controlsignalusesthesamevoltage,butitusespositivelogic.Apositivevoltageindicatesthisfunctionisonandanegativevoltageindicatesthisfunctionisoff.RS-232interfacechiptransformthesesignalsinreverse.InoutputpinofoneUART,Alogic1datumoraoffcontrolsignaliscloseto5V,itproducesnegativevoltageontheinterfaceofRS-232.Alogic0datumoranon-controlsignaliscloseto0V,itproducesapositivevoltageontheinterfaceofRS-232.BecauseoftheRS-232receptormaybeattheendofalongelectricalcable,whenthesignalreachesthereceiver,itsvoltageisprobablyweakerorwiththenoisesignal.Inconsiderationofthiscircumstanceminimumatthereceivershouldbelowerthanthevoltageatthedriver.Aninputhigherthan+3VontheRDareaLogic0,oronacontrolinputisopen.Aninputlowerthan-3VontheRDareaLogic1,oronacontrolinputisoff.Accordingtothisstandard,inputlogicelectricallevelbetween-3Vand+3VhavenodefinitionNoisetolerablelimitationorvoltagetolerablelimitationisdifferenceoutputvoltageandinputvoltage.ThebigvoltageundulationfromRS-232leadtoanoisetolerablelimitationwiderthanlogic5TTL.Forexample,eventhoughtaoutputfromRS-232driveristhesmallest+5V,itsalsobeweakeninthereceiverorthenoisepeakriseto2V,andstillisaeffectiveLogic0.ManyoutputsfromRS-232havethewidervoltageundulation:9Vand12Vareverycommonaffairs.Alltheseaffairscanleadtoanoiselimitation.Thebiggestpermittingvoltageundulationis15V,eventhoughthereceivemusthavenoharmtodealwiththevoltagehigherto25V.TheothertwotechnicaltermsconcernwithRS-232tobeusedisMarkandSpace.SpaceisLogic0andMarkisLogic1.Thesetwotechnicaltermswhichwasusedbythemachinerecordinginstrumenttorecordbinarydatainmanyyearsago,eachofthemarerepresentationphysicalandblank.ClockingLimitation:TIA/EIA-232includingsmallestandbiggestclockingstipulate.AllouttheRS-232interfacechipsallaccordthisstipulate.AppointedrevolvingspeedlimitedthebiggestPotterrateofinterface.Therevolvingrateismeasuretotherateofspeedchangewhenoutputcut-overvoltage,anddescribethechangeofinstantaneousvelocityinTheadvantageinlimitedtherevolvingisforimprovesignalqualitybyinthematteroffacttolimitedtheproblemwhichisduetovoltagedeflection,voltagedeflectionoccurthesignalinthelongdistancelinkwhichhashigh-speedriseanddescend.Theremoredetailednarrationstothisproblemareincapter10.Butrevolvingvelocityalsolimitedtothebiggestspeedofalink.Underspeedof30V/s,aoutputneed0.3stocut-overtimein166times.Actually,becausetheUARTtoreadinputdatainnearthemiddleofthedigit,andalsobecausemanytimesconsultclockinveryaccurate,usuallycanmayusethedigitwidthforcut-overtimeasshort5to10timesafety.Consideredtheseconditions,someinterfacechipspermitting115kbpsormorehigherPotterrate,eventhoughitsinfringethesuggestionthisstandard.Exceptforhasabiggestcut-overvelocity,RS-232driveralsomustaccordingtheloweststandardtoensurethesignalnostopoverintheundefinedareabetweenthelogicalcondition.Tocontrolsignalother40bpsandthelowersignal.Signallinesmustspendtimenotsurpass1sinthetransmitareabetweentheeffectiveLogic1andLogic0.Tootherdataandtimesignalthislimitationplacewideis4%orunder20bpsis2s.Frequenciesofsignalriseanddescendalsoprobablyclosetobeequal.Transformationbetween5VlogicalandRS-232Manymicro-controllershaveasynchronousserialports,buttheirinputandoutputrathertouse5VlogicthantoRS-232voltage.Tolink5VlogictoaRS-232portneedtotransformintoRS-232electricallevelandtransformfromRS-232electricallevelinto5Vlogic.Touseof5Vlogic,IsupposedtotheuseofelectricallevelofTTLorCMOSlogicchips,thesechipsaresupplyelectricitybyasingle+5Velectrical,signalelectricallevelrefertogroundingelectricallevel.Tables6-2indicatethis.Ialsosupposedtopositivelogic,inhere,thelogicalhighelectriclevelislogic1.ToTTLlogic,alogicallowoutputmustbelow0.4V,alogicallowinputmustbelow0.8V.Alogicalhighoutputmustbe2.4Vatleastandalogicalhighinputmustbe2Vatleast.Touseoftheselogicalelectricallevels,aninterfacemayhavenoisesignalat0.4Vandnotnecessarilytomakemistake.TheselogicalelectricallevelsareusedintoTTLlogicofearlydaysstandard7400seriesandotherdriversseries,including74LS74Fand74ALSTTL.TheNMOStechnologyearlyisusedtomakemicro-controllersalsousethesehelicalelectricallevels.MostCMOSchipsdefinitedifferentlogicalelectricallevelsandhavewidernoisetolerable.AlogicallowCMOSoutputbelow0.1Vandlogicallowinputmayhigherto20%electricalvoltage,ortoelectricalvoltagein5Vcanreachto1V.Alogicalhighoutputtobe4.9Vatleastandlogicalhighinputmustreachtoelectronicallyvoltages70%atleast,orto5Velectricalinputreachto3.5V.Touseofthisseriesoflogicalelectricallevel,including4000series,74HCand74AClogic.SomeofCMOSchipshaveTTLcompatibleinputandCMOScompatibleoutput.ItsmakethemcanlinkwithCMOSorTTLlogicdirectly.Thechipsoffollowtothisusualpracticeincluding74HClogicseriesandmostofmicro-controllers。串行通信接口RS-232和RS-485是在任何时候都常用的接口。它们不仅已经被内置于每台PC,而且已被内置于从微控制器到主机的多种类型的电脑和与它们连接的设备。RS-232的最通常得用处是连接到一个Modem,其他拥有RS-232接口的设备包括打印机,数据采集模块,测试装置和控制回路。你也可以将RS-232用在任何类型得计算机之间的简单连接中。RS-485则是用于线路比较长的情况下使用,其作用和RS-232一样。RS-232是设计来处理两台设备之间的通信的,距离限制为50到100f,这决定于波特率和电缆类型。因为RS-232端口被广泛应用,它的另
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年青海柴达木职业技术学院单招职业适应性考试题库附参考答案详解(夺分金卷)
- 2026年陕西青年职业学院单招职业倾向性测试题库带答案详解(培优a卷)
- 2025年东莞松山湖科学城公开招聘15人备考题库带答案详解
- 2026年青海省西宁市单招职业倾向性考试题库带答案详解(黄金题型)
- 中国铁路太原局集团有限公司2026年招聘高校毕业生1014人备考题库及一套完整答案详解
- 2026年闽西职业技术学院单招综合素质考试题库含答案详解(巩固)
- 2026年青海农牧科技职业学院单招职业技能考试题库附参考答案详解(能力提升)
- 2026年鹰潭职业技术学院单招职业适应性测试题库附答案详解
- 2025年武冈市招募特聘动物防疫专员备考题库及一套参考答案详解
- 2026年青岛远洋船员职业学院单招综合素质考试题库及1套参考答案详解
- 物业小区控烟监督制度
- 2026年郑州市检验检测有限公司公开招聘19人笔试备考题库及答案解析
- 二十届中纪委五次全会知识测试题及答案解析
- GB/T 26514-2011互叶白千层(精)油,松油烯-4-醇型茶树(精)油
- GA/T 1028.4-2017机动车驾驶人考试系统通用技术条件第4部分:道路驾驶技能考试系统
- 除灰点检技术标准
- 04第四章-火箭导弹的气动布局
- 齐鲁医学妊娠期急腹症
- 【部编版】六年级道德与法治下册全册课件
- 年龄相关性白内障课件
- 石膏头像素描之头骨篇课件
评论
0/150
提交评论