欢迎来到人人文库网! | 帮助中心 人人文库renrendoc.com美如初恋!
人人文库网
首页 人人文库网 > 资源分类 > DOC文档下载

外文翻译--串行通信接口.doc

  • 资源大小:64.50KB        全文页数:7页
  • 资源格式: DOC        下载权限:游客/注册会员/VIP会员    下载费用:5
游客快捷下载 游客一键下载
会员登录下载
下载资源需要5

邮箱/手机号:
您支付成功后,系统会自动为您创建此邮箱/手机号的账号,密码跟您输入的邮箱/手机号一致,以方便您下次登录下载和查看订单。注:支付完成后需要自己下载文件,并不会自动发送文件哦!

支付方式: 微信支付    支付宝   
验证码:   换一换

友情提示
2、本站资源不支持迅雷下载,请使用浏览器直接下载(不支持QQ浏览器)
3、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰   

外文翻译--串行通信接口.doc

SERIALCOMMUNICATIONINTERFACERS232ANDRS485ISTHENORMALLYUSEDINTERFACESATANYTIME,ITNOTONLYBUILTINEVERYPCSET,BUTALSOBUILTINANYTYPESOFCOMPUTERSWHICHAREFROMMICROCONTROLLERTOHOSTCOMPUTERS,ANDEQUIPMENTCONNECTEDWITHTHEMTHEGENERALUSAGEOFRS232ISTOCONNECTAMODERN,THEOTHERARRANGEMENTSWITHRS232INTERFACESINCLUDEPRINTER,DATACOLLECTIONMODULE,TESTINGDEVICEANDCONTROLLOOPRS232CANBEALSOUSEDINTHESIMPLELINKOFANYTYPEOFCOMPUTERBUT,RS485CANBELINKWITHSEVERALDEVICESBYMEANSOFALONGLEAD,ITHAVESAMEFUNCTIONRS232ISDESIGNEDTODEALWITHTHECOMMUNICATIONBETWEENTWOARRANGEMENTSWITHDISTANCELIMITATIONFROM50TO100FT,WHICHDEPENDONPOTTERRATEANDTYPEOFELECTRICCABLEBECAUSEOFWIDEAPPLICATIONOFRS232PORT,ITSOTHERUSAGEISTOLINKANOTHERTYPEOFADAPTERCONVERTEDFORMTHEPORTFOREXAMPLE,ASIMPLELOOPCHANGESARS232INTOARS485PORTTHEPORTCANBELINKWITHSEVERALDEVICESBYMEANSOFALONGLEADNONEQUILIBRIUMLEADISUSEDTOLINKEDTORS232ALTHOUGHNONEQUILIBRIUMSHOULDSOMETHINGAVOIDABLE,ITONLYREFERSTOTHEELECTRICPROPERTYOFTHESIGNALINLEADINANONEQUILIBRIUMLEAD,SIGNALVOLTAGEISAPPLIEDTOANOTHERLEAD,ALLHASANOTHERTECHNICALTERM“SIGNALEND”ADVANTAGESINRS232RS232ISUSEDEVERYWHEREEVERYPCSETHASONEORMORERS232PORTSTHERENEWEDCOMPUTERSSUSTAINOTHERSERIALINTERFACESLIKEUSBBUTRS232CANDOMANYTHINGSWHICHUSBCAN’TDOINTHEMICROCONTROLLERINTERFACECHIPCANBEEASILYUSEDTOCHANGEINTORS232THEJOINTINGDISTANCECANREACH50100FTMANYEXTERNALINTERFACESARENOTUSEDFORTOOLONGDISTANCETHELONGESTDISTANCEJOINTOFUSBCANREACH16FTTHEDISTANCEBETWEENPARALLELPRINTERINTERFACEONTHEPCSETANDTHEHOSTCOMPUTERCANREACH10TO15FT,OR30FTBYUSINGTYPETEEE1284BDRIVERBUTRS232CANUSETHELONGERELECTRICCABLEIFEVERYRS232PORTISLINKEDWITHAMODERN,TELEPHONENETWORKCANUSEDTOSENDDATAINTHERAGEOFTHEWORLDFORADOUBLELINK,3LEADSARENEEDEDAPARALLELCIRCUITGENERALLYNEEDS8DATALINES,TWOORMORECONTROLSIGNALLINESANDGROUNDWIRES。ITISMOREEXPENSIVEIFMORELEADSANDBIGGERCONNECTORSAREUSEDDISADVANTAGESINRS232IFONESIDEOFLINKNEEDSPARALLELDATA,ITHASTOTRANSFORMSERIALINTOPARALLELDATABUTIFITISEASILYREALIZEDAUARTISUSEDBECAUSEOFTHESERIALPORTSOUSEFUL,ITISMAYBEHARDERTOLOOKFORAFREESERIALPORTPCSETMAYHAVEMANYSERIALPORTS,BUTASYSTEMMAYBECAN’TDISTRIBUTEASOLEBREAKINGENQUIRINGSIGNALTOEVERYSERIALPORTMOSTMICROCONTROLLERONLYHASONEHARDWARESERIALPORTNOMORETHAN2SETINONELINKTHEBIGGESTDESIGNATEDTRANSMITTINGRATEOFDATAIS2000BITS/SBUTMANYINTERFACECHIPCANSURPASSTHISNUMERICALVALUE,ESPECIALLYINTHESHORTDISTANCELINKALONGERLINKNEEDSADIFFERENTINTERFACE3BASICSIGNALSOFTHEDOUBLERS232COMMUNICATIONASFOLLOWSTDTRANSFORMDATADTETODCEIT’SALSOCALLEDTXANDTXDRDTRANSFORMDATADCETODTEIT’SALSOCALLEDRXANDRXDSGSIGNALLANDIT’SALSOCALLEDGNDANDSGNDVOLTAGELOGIC0ISAPOSITIVERS232VOLTAGE,THELOGICELECTRICLEVELOFRS232ISINDICATEDWITHPOSITIVENEGATIVE,ANDNOTONLYUSETHEPOSITIVEVOLTAGESIGNALOFTHE5VTTLANDCMOSLOGICTOINDICATEINTHEDATALOGGERTDOFRS232,ALOGIC0ISDEFINEDEQUALTOORHIGHERTHAN5V,ANDALOGIC1DEFINEDEQUALTO5VORLOWERTHAN5VINANOTHERWORD,SIGNALUSETHENEGATIVELOGIC,INTHISLOGIC,THENEGATIVEVOLTAGEISLOGIC1CONTROLSIGNALUSESTHESAMEVOLTAGE,BUTITUSESPOSITIVELOGICAPOSITIVEVOLTAGEINDICATESTHISFUNCTIONISONANDANEGATIVEVOLTAGEINDICATESTHISFUNCTIONISOFFRS232INTERFACECHIPTRANSFORMTHESESIGNALSINREVERSEINOUTPUTPINOFONEUART,ALOGIC1DATUMORAOFFCONTROLSIGNALISCLOSETO5V,ITPRODUCESNEGATIVEVOLTAGEONTHEINTERFACEOFRS232ALOGIC0DATUMORANONCONTROLSIGNALISCLOSETO0V,ITPRODUCESAPOSITIVEVOLTAGEONTHEINTERFACEOFRS232BECAUSEOFTHERS232RECEPTORMAYBEATTHEENDOFALONGELECTRICALCABLE,WHENTHESIGNALREACHESTHERECEIVER,IT’SVOLTAGEISPROBABLYWEAKERORWITHTHENOISESIGNALINCONSIDERATIONOFTHISCIRCUMSTANCEMINIMUMATTHERECEIVERSHOULDBELOWERTHANTHEVOLTAGEATTHEDRIVERANINPUTHIGHERTHAN3VONTHERDAREALOGIC0,ORONACONTROLINPUTISOPENANINPUTLOWERTHAN3VONTHERDAREALOGIC1,ORONACONTROLINPUTISOFFACCORDINGTOTHISSTANDARD,INPUTLOGICELECTRICALLEVELBETWEEN3VAND3VHAVENODEFINITIONNOISETOLERABLELIMITATIONORVOLTAGETOLERABLELIMITATIONISDIFFERENCEOUTPUTVOLTAGEANDINPUTVOLTAGETHEBIGVOLTAGEUNDULATIONFROMRS232LEADTOANOISETOLERABLELIMITATIONWIDERTHANLOGIC5TTLFOREXAMPLE,EVENTHOUGHTAOUTPUTFROMRS232DRIVERISTHESMALLEST5V,IT’SALSOBEWEAKENINTHERECEIVERORTHENOISEPEAKRISETO2V,ANDSTILLISAEFFECTIVELOGIC0MANYOUTPUTSFROMRS232HAVETHEWIDERVOLTAGEUNDULATION9VAND12VAREVERYCOMMONAFFAIRSALLTHESEAFFAIRSCANLEADTOANOISELIMITATIONTHEBIGGESTPERMITTINGVOLTAGEUNDULATIONIS15V,EVENTHOUGHTHERECEIVEMUSTHAVENOHARMTODEALWITHTHEVOLTAGEHIGHERTO25VTHEOTHERTWOTECHNICALTERMSCONCERNWITHRS232TOBEUSEDISMARKANDSPACESPACEISLOGIC0ANDMARKISLOGIC1THESETWOTECHNICALTERMSWHICHWASUSEDBYTHEMACHINERECORDINGINSTRUMENTTORECORDBINARYDATAINMANYYEARSAGO,EACHOFTHEMAREREPRESENTATIONPHYSICALANDBLANKCLOCKINGLIMITATIONTIA/EIA232INCLUDINGSMALLESTANDBIGGESTCLOCKINGSTIPULATEALLOUTTHERS232INTERFACECHIPSALLACCORDTHISSTIPULATEAPPOINTEDREVOLVINGSPEEDLIMITEDTHEBIGGESTPOTTERRATEOFINTERFACETHEREVOLVINGRATEISMEASURETOTHERATEOFSPEEDCHANGEWHENOUTPUTCUTOVERVOLTAGE,ANDDESCRIBETHECHANGEOFINSTANTANEOUSVELOCITYINTHEADVANTAGEINLIMITEDTHEREVOLVINGISFORIMPROVESIGNALQUALITYBYINTHEMATTEROFFACTTOLIMITEDTHEPROBLEMWHICHISDUETOVOLTAGEDEFLECTION,VOLTAGEDEFLECTIONOCCURTHESIGNALINTHELONGDISTANCELINKWHICHHASHIGHSPEEDRISEANDDESCENDTHEREMOREDETAILEDNARRATIONSTOTHISPROBLEMAREINCAPTER10BUTREVOLVINGVELOCITYALSOLIMITEDTOTHEBIGGESTSPEEDOFALINKUNDERSPEEDOF30V/ΜS,AOUTPUTNEED03ΜSTOCUTOVERTIMEIN166TIMESACTUALLY,BECAUSETHEUARTTOREADINPUTDATAINNEARTHEMIDDLEOFTHEDIGIT,ANDALSOBECAUSEMANYTIME’SCONSULTCLOCKINVERYACCURATE,USUALLYCANMAYUSETHEDIGITWIDTHFORCUTOVERTIMEASSHORT5TO10TIMESAFETYCONSIDEREDTHESECONDITIONS,SOMEINTERFACECHIPSPERMITTING115KBPSORMOREHIGHERPOTTERRATE,EVENTHOUGHITSINFRINGETHESUGGESTIONTHISSTANDARDEXCEPTFORHASABIGGESTCUTOVERVELOCITY,RS232DRIVERALSOMUSTACCORDINGTHELOWESTSTANDARDTOENSURETHESIGNALNOSTOPOVERINTHEUNDEFINEDAREABETWEENTHELOGICALCONDITIONTOCONTROLSIGNALOTHER40BPSANDTHELOWERSIGNALSIGNALLINESMUSTSPENDTIMENOTSURPASS1ΜSINTHETRANSMITAREABETWEENTHEEFFECTIVELOGIC1ANDLOGIC0TOOTHERDATAANDTIMESIGNALTHISLIMITATIONPLACEWIDEIS4ORUNDER20BPSIS2ΜSFREQUENCIESOFSIGNALRISEANDDESCENDALSOPROBABLYCLOSETOBEEQUALTRANSFORMATIONBETWEEN5VLOGICALANDRS232MANYMICROCONTROLLERSHAVEASYNCHRONOUSSERIALPORTS,BUTTHEIRINPUTANDOUTPUTRATHERTOUSE5VLOGICTHANTORS232VOLTAGETOLINK5VLOGICTOARS232PORTNEEDTOTRANSFORMINTORS232ELECTRICALLEVELANDTRANSFORMFROMRS232ELECTRICALLEVELINTO5VLOGICTOUSEOF5VLOGIC,ISUPPOSEDTOTHEUSEOFELECTRICALLEVELOFTTLORCMOSLOGICCHIPS,THESECHIPSARESUPPLYELECTRICITYBYASINGLE5VELECTRICAL,SIGNALELECTRICALLEVELREFERTOGROUNDINGELECTRICALLEVELTABLES62INDICATETHISIALSOSUPPOSEDTOPOSITIVELOGIC,INHERE,THELOGICALHIGHELECTRICLEVELISLOGIC1TOTTLLOGIC,ALOGICALLOWOUTPUTMUSTBELOW04V,ALOGICALLOWINPUTMUSTBELOW08VALOGICALHIGHOUTPUTMUSTBE24VATLEASTANDALOGICALHIGHINPUTMUSTBE2VATLEASTTOUSEOFTHESELOGICALELECTRICALLEVELS,ANINTERFACEMAYHAVENOISESIGNALAT04VANDNOTNECESSARILYTOMAKEMISTAKETHESELOGICALELECTRICALLEVELSAREUSEDINTOTTLLOGICOFEARLYDAYSSTANDARD7400SERIESANDOTHERDRIVERSSERIES,INCLUDING74LS74FAND74ALSTTLTHENMOSTECHNOLOGYEARLYISUSEDTOMAKEMICROCONTROLLERSALSOUSETHESEHELICALELECTRICALLEVELSMOSTCMOSCHIPSDEFINITEDIFFERENTLOGICALELECTRICALLEVELSANDHAVEWIDERNOISETOLERABLEALOGICALLOWCMOSOUTPUTBELOW01VANDLOGICALLOWINPUTMAYHIGHERTO20ELECTRICALVOLTAGE,ORTOELECTRICALVOLTAGEIN5VCANREACHTO1VALOGICALHIGHOUTPUTTOBE49VATLEASTANDLOGICALHIGHINPUTMUSTREACHTOELECTRONICALLYVOLTAGE’S70ATLEAST,ORTO5VELECTRICALINPUTREACHTO35VTOUSEOFTHISSERIESOFLOGICALELECTRICALLEVEL,INCLUDING4000SERIES,74HCAND74ACLOGICSOMEOFCMOSCHIPSHAVETTLCOMPATIBLEINPUTANDCMOSCOMPATIBLEOUTPUTITSMAKETHEMCANLINKWITHCMOSORTTLLOGICDIRECTLYTHECHIPSOFFOLLOWTOTHISUSUALPRACTICEINCLUDING74HCLOGICSERIESANDMOSTOFMICROCONTROLLERS。串行通信接口RS232和RS485是在任何时候都常用的接口。它们不仅已经被内置于每台PC,而且已被内置于从微控制器到主机的多种类型的电脑和与它们连接的设备。RS232的最通常得用处是连接到一个MODEM,其他拥有RS232接口的设备包括打印机,数据采集模块,测试装置和控制回路。你也可以将RS232用在任何类型得计算机之间的简单连接中。RS485则是用于线路比较长的情况下使用,其作用和RS232一样。RS232是设计来处理两台设备之间的通信的,距离限制为50到100F,这决定于波特率和电缆类型。因为RS232端口被广泛应用,它的另一个用途是与一个将这个接口转换成另一种类型的适配器相连。例如,一个简单的回路将一个RS232端口转换成一个RS485端口,这个端口可以和多台设备相连并且可以使用更长的导线连线。RS232连接使用非平衡导线。尽管一个非平衡的状态听起来像是一些应该避免的东西,在这里它仅仅是指导线中的信号的电气特性。在一条非平衡导线中,信号电压加到一条导线上,所有的信号电压都使用一个公共的接地线。这种类型的接口的另一个术语是单端。特性RS232有几个优点它是无处不在的。每一台PC机都有一个或更多的RS232端口。更新的计算机现在支持其他诸如USB这样的串行接口,但是RS232可以做很多USB无法做的事情。在微控制器中,接口芯片使得将一个5V串口转换成RS232变得很容易。连接距离可以达到50到100FT。大多数的外设接口都不会用于太长的距离。USB连接最长可以达到16FT,PC机的并口打印机接口与主机的距离可以达到10到15FT,或者利用IEEE1284B型驱动器可以达到30FT。但是RS232可以使用更长的电缆。如果每一个RS232端口与一个MODEM相连,你可以使用电话网在世界范围内发送数据。对于一个双向连接,你只需要3条导线。一个并行连接一般需要8条数据线,两条或者更多的控制信号线,和几条接地线。所有的导线和更大的连接器使得价格累计起来就比较高了。RS232的缺点包括以下这些如果连接的另一头需要并行数据,它不得不将这个串口数据转换成并行数据。但是利用一个UART,这很容易实现。串口是如此的有用,以至于寻找一个未用的串口可能会比较困难。PC机可以有多个串口,但是一个系统可能无法为每一个串口分配一个唯一的中断请求信号。大多数的微控制器只有一个硬件串口。在一个连接中不能有超过2台以上的设备。指定的最大数据传输速率是每秒20000位。但是,很多接口芯片可以超过这个数值,尤其是在短程连接上。很长的连接需要一个不同的接口。双向RS232通信的3个基本信号如下TD将数据从DCE传输到DCE也被称作TX和TXD。

注意事项

本文(外文翻译--串行通信接口.doc)为本站会员(英文资料库)主动上传,人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知人人文库网(发送邮件至[email protected]或直接QQ联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。

关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服客服 - 联系我们

网站客服QQ:2846424093    人人文库上传用户QQ群:460291265   

[email protected] 2016-2018  renrendoc.com 网站版权所有   南天在线技术支持

经营许可证编号:苏ICP备12009002号-5