




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 瑜伽学院活动方案
- 甘肃省恢复旅游活动方案
- 甘南公司活动方案
- 班级小说创编活动方案
- 焕发活力挑战活动方案
- 生活常识活动方案
- 爱心标语活动策划方案
- 献爱心送汤剂活动方案
- 珠宝冷餐活动方案
- 环保活动春游活动方案
- 校园信息化建设中的技术难题与解决方案
- 呼吸阀行业市场发展现状及趋势与投资分析研究报告
- 精-品解析:广东省深圳红岭中学2024-2025学年高一上学期第一学段考(期中)英语试题(原卷版)
- 互联网企业产品经理聘用合同
- 课程委托协议合同范例
- 论语十二章原文全篇高中版
- 食堂内部控制制度
- 世界卫生组织人类精液及精子-宫颈粘液相互作用实验室检验手册第五版
- 2023-2024学年广东省深圳高级中学七年级(上)期中历史试卷
- 2024-2025学年初中信息技术(信息科技)七年级下册苏科版(2023)教学设计合集
- HGT20638-2017化工装置自控工程设计文件深度规范
评论
0/150
提交评论