基于单片机的温湿度控制系统英文文献

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

英文文献翻译学生姓名刘学毅专业自动化学号0833141分院电子工程分院2012年6月11.外文原文A:FundamentalsofSingle-chipMicrocomputerThesingle-chipmicrocomputeristheculminationofboththedevelopmentofthedigitalcomputerandtheintegratedcircuitarguablythetowmostsignificantinventionsofthe20thcenturyThesetowtypesofarchitecturearefoundinsingle-chipmicrocomputer.Someemploythesplitprogram/datamemoryoftheHarvardarchitecture,othersfollowthephilosophy,widelyadaptedforgeneral-purposecomputersandmicroprocessors,ofmakingnologicaldistinctionbetweenprogramanddatamemoryasinthePrincetonarchitecture,showninFig.3-5A-2.Ingeneraltermsasingle-chipmicrocomputerischaracterizedbytheincorporationofalltheunitsofacomputerintoasingledevice.Readonlymemory(ROM)ROMisusuallyforthepermanent,non-volatilestorageofanapplicationsprogram.Manymicrocomputersandmicrocontrollersareintendedforhigh-volumeapplicationsandhencetheeconomicalmanufactureofthedevicesrequiresthatthecontentsoftheprogrammemorybecommittedpermanentlyduringthemanufactureofchips.Clearly,thisimpliesarigorousapproachtoROMcodedevelopmentsincechangescannotbemadeaftermanufacture.Thisdevelopmentprocessmayinvolveemulationusingasophisticateddevelopmentsystemwithahardwareemulationcapabilityaswellastheuseofpowerfulsoftwaretools.SomemanufacturersprovideadditionalROMoptionsbyincludingintheirrangedeviceswith(orintendedforusewith)userprogrammablememory.Thesimplestoftheseisusuallydevicewhichcanoperateinamicroprocessormodebyusingsomeoftheinput/outputlinesasanaddressanddatabusforaccessingexternalmemory.ThistypeofdevicecanbehavefunctionallyasthesinglechipmicrocomputerfromwhichitisderivedalbeitwithrestrictedI/Oandamodifiedexternalcircuit.TheuseoftheseROMlessdevicesiscommoneveninproductioncircuitswherethevolumedoesnotjustifythedevelopmentcostsofcustomon-chipROM[2];therecanstillbeasignificantsavinginI/Oandotherchipscomparedtoaconventionalmicroprocessorbasedcircuit.MoreexactreplacementforROMdevicescanbeobtainedintheformofvariantswith'piggy-back'EPROM(ErasableprogrammableROM)socketsordeviceswithEPROMinsteadofROM。ThesedevicesarenaturallymoreexpensivethanequivalentROMdevice,butdoprovidecompletecircuitequivalents.EPROMbaseddevicesarealsoextremelyattractiveforlow-volumeapplicationswhere2theyprovidetheadvantagesofasingle-chipdevice,intermsofon-chipI/O,etc.,withtheconvenienceofflexibleuserprogrammability.Randomaccessmemory(RAM).RAMisforthestorageofworkingvariablesanddatausedduringprogramexecution.Thesizeofthismemoryvarieswithdevicetypebutithasthesamecharacteristicwidth(4,8,16bitsetc.)astheprocessor,Specialfunctionregisters,suchasstackpointerortimerregisterareoftenlogicallyincorporatedintotheRAMarea.ItisalsocommoninHardtypemicrocomputerstotreattheRAMareaasacollectionofregister;itisunnecessarytomakedistinctionbetweenRAMandprocessorregisterasisdoneinthecaseofamicroprocessorsystemsinceRAMandregistersarenotusuallyphysicallyseparatedinamicrocomputer.Centralprocessingunit(CPU).TheCPUismuchlikethatofanymicroprocessor.Manyapplicationsofmicrocomputersandmicrocontrollersinvolvethehandlingofbinary-codeddecimal(BCD)data(fornumericaldisplays,forexample),henceitiscommontofindthattheCPUiswelladaptedtohandlingthistypeofdata.Itisalsocommontofindgoodfacilitiesfortesting,settingandresettingindividualbitsofmemoryorI/Osincemanycontrollerapplicationsinvolvetheturningonandoffofsingleoutputlinesorthereadingthesingleline.Theselinesarereadilyinterfacedtotwo-statedevicessuchasswitches,thermostats,solid-staterelays,valves,motor,etc.Parallelinput/output.Parallelinputandoutputschemesvarysomewhatindifferentmicrocomputer;inmostamechanismisprovidedtoatleastallowsomeflexibilityofchoosingwhichpinsareoutputsandwhichareinputs.Thismayapplytoallorsomeoftheports.SomeI/Olinesaresuitablefordirectinterfacingto,forexample,fluorescentdisplays,orcanprovidesufficientcurrenttomakeinterfacingothercomponentsstraightforward.SomedevicesallowanI/Oporttobeconfiguredasasystembustoallowoff-chipmemoryandI/Oexpansion.Thisfacilityispotentiallyusefulasaproductrangedevelops,sincesuccessiveenhancementsmaybecometoobigforon-chipmemoryanditisundesirablenottobuildontheexistingsoftwarebase.Serialinput/output.Serialcommunicationwithterminaldevicesiscommonmeansofprovidingalinkusingasmallnumberoflines.Thissortofcommunicationcanalsobeexploitedforinterfacingspecialfunctionchipsorlinkingseveralmicrocomputerstogether.Both3thecommonasynchronoussynchronouscommunicationschemesrequireprotocolsthatprovideframing(startandstop)information.ThiscanbeimplementedasahardwarefacilityorU(S)ART(Universal(synchronous)asynchronousreceiver/transmitter)relievingtheprocessor(andtheapplicationsprogrammer)ofthislow-level,time-consuming,detail.tismerelynecessarytoselectedabaud-rateandpossiblyotheroptions(numberofstopbits,parity,etc.)andload(orreadfrom)theserialtransmitter(orreceiver)buffer.Serializationofthedataintheappropriateformatisthenhandledbythehardwarecircuit.Timing/counterfacilities.Manyapplicationofsingle-chipmicrocomputersrequireaccurateevaluationofelapsedrealtime.Thiscanbedeterminedbycarefulassessmentoftheexecutiontimeofeachbranchinaprogramb

1 / 6
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功