1、基于单片机的温度控制系统外文翻译(完整资料)(可以直接使用,可编辑 优秀版资料,欢迎下载)外文原文:DegfthTempatrControlSymasedonAT9C51ABSTRACTherncipleandunctonsofetmperaurecotrolsystmsomcrontrleA8C5arstuied,adthtemerauremeasurementunitcosssfthWrebudigitalemperatursesr820。hesysemcanbeexpectetoetectthpresteert,playtendsaveoniondat。Analarmwilleivbys
2、ytemifetempraturexcstheeranoweitvalufthetemratrewhichcanbeseticrtinailandnauoaticontrisachieve,tushetemperaueischievdmonitoriinellignlywithinacertaine.asingnpncilsystem,itiseasytomkeavarietyfotrnoliearcontrostemssologthesoftwaredesignrasoablychanged.Thesystemhbeenprovdtoeaccuate,eiablensaisfiedtough
3、fieldpacticeKEYWRDS:AT89C51;micrcntoler;S18B20;teperatur1ITODUCIONTeruesayimortanprmetrinhumanlie.Inthemodensociey,tempaturecotro(C)isnoonseinndusraproucton,taswdelusedinotherields.Withimprveentfthelifequality,wecanfideCppliaceihotels,factorsndhmawel.AndttrendthatCilbeterserthewhlescit,sotisfgratsgn
4、inceteaseandntroltheeratureBsdontheATC51nteperaresenorD1820,thisysemcntrolstheondiionempratureinelligenly。Thetemraturenbesetdiscrtiarilywithinaeranage。hesysemcanhowtheimenLD,ndavemoioringda;adaumaticaycnothetempraurewhentondiinemprtureexcedsteuppedwerlimvalueydigsoitistokeetheemetureunchaned.hesstmi
5、ofhighant-jammin,hgcontrrecionndflxibleesig;tasofitstheuggedenvirment。tisainlusedineoplsliftomprveequtyofhrkndlife。Iisaoersaile,sothattcaneconenientoexendteuseothesystem。Sothedesigniofprofonortance.eneraldsig,hadedesinansoftwaredesignothsstemarcovered。1.1ItodutionT8itATC51CHMOSmicrocontlsaredesigned
6、tohanlehigh-speecalclationsnstinpt/utpuratons.CS51micotollersaretypayusorigh-speedevetcntrolsytem。Cmercialppicatinincldemoem,motorcontrlsym,printe,phoocopis,aicondiionrctrostm,skds,andmdiclinstrmens.TheatmoveinustrysMCS51mcrcotroinengine-conrolystes,aibs,speninsysem,andantilokbrakigssts(S)。TheAT895i
7、sspcillywellsuiedopplicatiosthatbenefitfrmitsprcesngspeandnacedonchipeipheralfunosset,suchasautomotvepor-rincontrol,vehiledynmicsspensn,aniocrakn,dsabiiontolapplitins。Becauseotesecriticaapplicaio,themrketeqiresareliblecos-effectventrollerwhawinteruptlatencyesonse,ablittrvicehehighnerofimendeendrivei
8、ntegtderiphealsneededirealtieaplcaio,nCPUwithaboveaverageprocessingwerinasiglpackag。henncilndlegalrskofhavingevcethaopereuprectabyveyhgh.Oneinthemarket,particulalyimisoncrticaplicatiosschasantpiltoant-lokbakingystm,mistakearnncillprohiitve。edsincossanrunahighaa5K,uchmoreithefixmen2backanntatngitacos
9、adctfamlyhatsharetheamcorenorpeiphesignflaw。Inaddition,fiedrplaeensofcmponntsixtreeyexensie,athedevicesrtyicallysealednmodulewialvalueeveraltimeshatfthecoonet。oitigaetheeprbles,iissentilttcmprehesivetingofthctrllerseardoutbthtcopontlveladysteleveunorstaseenromnalandoltageonditionThiscompletanthrougl
10、idationeceitesnotonlyweldefnedrcssbualsoapopeevirometandoltofacitateadexectetessioucesfully.IntelChandlrPlatformEgineringgruppvdespostsiliconsstmvidaion(SV)fvariousmicrocorollerandproessorsThesytemaltonprcecnbebroninotreemjorparts.hetpeoftdevcandtsaplctionrirementdetmiwhypesofstgareprormedthdice.1.2
11、TheT89C1rvistefollwingtandadfre4Kbytesoa,8yoRM,32I/Olines,to16bittimr/cners,afieetotwleveliterruprctetue,afulldupesriaor,onchciltoanclockcicuitr。additin,theT8Cisesnithstticoforpeaiondnzeoruncyandsuppotswoofwasetaleowrvingme。ThelMoestoptCPUhielloigtRM,imr/ounters,selpodinterpsystotnueuctioning。ThePow
12、erdownMdesvestheAMotenbutfreeestheosclatrdisablingalltherchipunctiosutilenexhardwaese.1.PnDescriptnCSuppyoltage。GNDGround。Pot0:Port0ian8bitopdaiiirctionalI/Opot。Aaoupupor,eahpicansiightTLputs.Whnsarerittenort0is,thincbeusashighimeanceinutsPor0masobecniguretetheultipledloworderaress/databusduigaccese
13、oextnalrgrnddameryInthsmeP0hasinteralpullps。Port0alrcistheodebtsdrngahpgramig,andutputsecodebyternograerificatio.xernallupsareeirddurngpogamvificatonPrt1:or1ian8bitdiretnalIOporitintenaullups。Thort1tptbuferscansnk/so-uefourTTLnput。WhearrttoP1pinseyrpulledhighbythntrnapullupsandcanbuseainputs。Ainput,
14、rpnsthatarextenallybeipuledlowwillsurect(L)becauseoftheternalpullu.Port1aoreevesheloworderddrssytesrinFlashproramnanderification。Por2:ort2iabii-rectionaIOporwthinternlpulu。TPot2outputbufscnsi/surcefoTLnpuWhen1sarewritentort2pnteyarpulledhihbythinternlpullpsandcanbesdspu.Asiuts,Porinshatreeenlybeigpu
15、lldowwillsurcecurre(IIL)beausofheintrnapullups.ortmistehighordraddressyteduringfetchesomexernoammoruriccessestoP2pintaareexterabiguledlillsourerren(IIL)becseofthnternapullup。Pt2emitthehghorerddessbyteinfchesfrmetrnalproraemoryandurngccessestoeerndatammoytatuse16bitaddrsses(MOVXDPTR)。Inthiaplicato,it
16、usesstonginteralpullsweemtt1s.urngacessestoextrnadtamemoryhatuse8bitadreses(OVXR),Port2emitthecontentsofthP2SpecalFunongitr。or2alorecivesthehighoderdresbitandsecntrosgalurshprogamindeifcatnPort3:ort3isa-bti-dirctionlIortwthinternallps。hert3utputbuffrscasn/sou-rcefourTTinps.Wen1saewrtentPorpinstheyre
17、pullehghbythntrlpullupsandcaneusedainputs。Asiput,Prt3pinshataeexernllbegpulledlwilourcecurrent(IIL)ecaseothpuups.Port3sosrefuncioovriouspecaleturesfthe8C5aistdbelo:RT:Resetinut。AhighonthiinfotwomchiecylshilehescilatorsunningrettedeviceALE/PROG:AdressatchEnblutputulsforltchingtelowbyeofthaddressdurin
18、gaccesestoexteramemory。Thispinialoeprogapueint(PROG)duinglrogrammin。normaloperatonALEiemitedataconsttateo1/thscllatorfrequency,admaybeusedforextnalimngclckinpuposesNote,howev,htoLpulseisskippedu-ngacccessoternalDataMemory。Ifdsired,AEoerationanbdsabeysettngitoSFRlocto8EH。Withhebits,ALEisctvnlduringaM
19、OVXorCintrction。Otherwise,theinisweklplledhig。ettgheAE-sabeiasnoefectithmcocontrllrisiextrnalexeunmoe.PSEN:ProgamtorEableisterastotoexternlprogmemory。henheAT89C51exctingcodefromexternalprommemoy,PSNisctvattwichaineyce,excetthattwoPSENactvaionsarskippedurieaesextraldaemory。EAPP:ExternaAcessEble。EAmub
20、strapetoGDiorderoenalthedevicetofchcodefoetrnaprgammemorylocaionartingt000utoFF。N,however,tatlokbit1isprorammed,EAllbeintralllthdonresetEAshuldesppetVCorintenalroramexcutis.Thispinalsreveshe2votrorammingeabevolage(P)duringFlshproramming,forpartsthatrequie12-vtP.TA1:Inpuotheineringscillramplieraninpu
21、toteintrnlclokoperaticc。XTAL2:Outpufromtheinertigoilaramlifier。OscillatrCaacterisicsXAL1nXTAL2artinptandotput,spciey,ofaivetingapierwhihcanbecnfiureforueasanochiposlltor,ashownigre1。EthraqurzrystalorceracrentormybeusdTodrvethevicefromanextrnclocsource,XTLsouldbeleftuncncedwhileTA1sdrivenasshowinFigu
22、r2.Teareorequirmentsontheutccleoftheexernalclocksial,sinheinputtohiernaclockngcircuiryshroughadvidebytwoflpfop,butinumndaximumvoltaehghalowtispecifainsmstbeosrvdIdlModeInidleode,thCPUputstslteepwiealthnchipperphealsremaiaie。ThemodesnvokebysotwarThecontentofteon-chiRAMaallthespcialfuctonsregistrsemai
23、nunchangedurithimode.Theiledecanteinatedbyenblediteuptorbyahardwareeset.Itshouldbenotettwhenidleiserinateyahrdwarees,tdevicnormllyrsuepormecution,fowheritleftof,uptwmachnecyclsefreheternalreselgorhtakescontol.nchphadwrinibitsaccsstoinenalAinthievet,buccestohepoinsisnoinhibiedTeliminatethposibilityoa
24、nuexpetwrietoaporpiwheIdleisteminatedyreset,heinstructionolwnheoethatinvkesIeshulnoteothatwritestoaortpirtextenlmeorPowdownModeIheower-wmde,theoscillatoristoped,ndtherucnatvokesower-dowisthelastinstrctionecute.hen-chipRAMandpealFuncioRegistrsretaintheirlueutilthepowedownmoeiserintd.Tenlifromowr-owns
25、ahardareres。ResereeiestheSRutdsnotchaneonchipAM.TheresethouobeatiatedefreCsrstoredtoitsnormalopratingevelanustbehelactvelogeughtoaowteoscillatororeartntlize。TeAT8C51codememyarrsprorambyteyyneiterrogramngode.TorogrnynlankteinteonchFlashemory,theentrememoymusbersedusinghChipEaMoe。2PogrammngAgorithmBef
26、rerogammntheAT89C5,thedess,ataandcotrolsigasshulbsetupccordntheFlshprogrammingmdeablenFge3dFgur。TograthAT9C51,tkethelowinstep.。putthedeiedmemryoinonthadesslie.Inputtheappriatedatabytnataline3.Activeecorcombintionofconrolsigal4.RseAVPto12ortheigholgeprgrangmode。PulsAE/ROGonprgrmateintheFlashrrayorhlo
27、cis.Thebyte-writecycleisself-timeadtypicaytaesno.翻译:温度控制系统的设计摘要研究了基于AT89C1单片机温度控制系统的原理和功能,温度测量单元由单总线数字温度传感器D18B2构成。该系统可进行温度设定,时间显示和保存监测数据。如果温度超过任意设置的上限和下限值,系统将报警并可以和自动控制的实现,从而达到温度监测智能一定范围内.基于系统的原理,很容易使其他各种非线性控制系统,只要软件设计合理的改变。该系统已被证明是准确的,可靠和满意通过现场实践.关键词:单片机;温度;温度1导言温度是在人类生活中非常重要的参数。在现代社会中,温度控制(C)不仅用于
28、工业生产,还广泛应用于其它领域。随着生活质量的提高,我们可以发现在酒店,工厂和家庭,以及比赛设备.而比赛的趋势将更好地服务于整个社会,因此它具有十分重要的意义测量和控制温度。在89C51单片机和温度传感器DS80的基础上,系统环境温度智能控制。温度可设定在一定范围内动任意.该系统可以显示在液晶显示屏的时间,并保存监测数据,并自动地控制温度,当环境温度超过上限和下限的值。这样做是为了保持温度不变。该系统具有很高的抗干扰能力,控制精度高,灵活的设计,它也非常适合这个恶劣的环境。它主要应用于人们的生活,改善工作和生活质量。这也是通用的,因此它可以方便地扩大使用该系统。因此,设计具有深刻的重要性。一般
29、的设计,硬件设计和软件系统的设计都包括在内。1介绍8位AT89C5CMOS工艺单片机被设计用于处理高速计算和快速输入/输出.C51单片机典型的应用是高速事件控制系统。商业应用包括调制解调器,电动机控制系统,打印机,影印机,空调控制系统,磁盘驱动器和医疗设备.汽车工业把MCS51单片机用于发动机控制系统,悬挂系统和反锁制动系统。AT8C5尤其很好适用于得益于它的处理速度和增强型片上外围功能集,诸如:汽车动力控制,车辆动态悬挂,反锁制动和稳定性控制应用。由于这些决定性应用,市场需要一种可靠的具有低干扰潜伏响应的费用效能控制器,服务大量时间和事件驱动的在实时应用需要的集成外围的能力,具有在单一程序包
30、中高出平均处理功率的中央处理器。拥有操作不可预测的设备的经济和法律风险是很高的。一旦进入市场,尤其任务决定性应用诸如自动驾驶仪或反锁制动系统,错误将是财力上所禁止的。重新设计的费用可以高达50美元,如果产品族享有同样内核或外围设计缺陷的话,费用会更高。另外,部件的替代品领域是极其昂贵的,因为设备要用来把模块典型地焊接成一个总体的价值比各个部件高几倍。为了缓和这些问题,在最坏的环境和电压条件下对这些单片机进行无论在部件级别还是系统级别上的综合测试是必需的。nteChandler平台工程组提供了各种单片机和处理器的系统验证。这种系统的验证处理可以被分解为三个主要部分。系统的类型和应用需求决定了能够
31、在设备上执行的测试类型。AT89C51提供以下标准功能字节FLASH闪速存储器,128字节内部RA,32个/O口线,个16位定时/计数器,一个5向量两级中断结构,一个全双工串行通信口,片内振荡器及时钟电路。同时,A8C51降至0Hz的静态逻辑操作,并支持两种可选的节电工作模式。空闲方式体制CP的工作,但允许RAM,定时计数器,串行通信口及中断系统继续工作。掉电方式保存RAM中的内容,但振荡器体制工作并禁止其他所有不见工作直到下一个硬件复位。.引脚功能说明Vc:电源电压GND:地P口:0口是一组8位漏极开路型双向口,也即地址/数据总线复用。作为输出口用时,每位能吸收电流的方式驱动8个TTL逻辑门
32、电路,对端口写“”可作为高阻抗输入端用。在访问外部数据存储器或程序存储器时,这组口线分时转换地址(低8位)和数据总线复用,在访问期间激活内部上拉电阻。在Fa编程时,P0口接受指令字节,而在程序校验时,输出指令字节,校验时,要求外接上拉电阻。P1口:P1是一个带内部上拉电阻的位双向I/O口,P的输出缓冲级可驱动(吸收或输出电流)4个T逻辑门电路.对端口写“,通过内部的上拉电阻把端口拉到高电平,此时可作输入口。作为输入口使用时,因为内部存在上拉电阻,某个引脚被外部信号拉低时会输出一个电流(IL)。lsh编程和程序校验期间,P1接受低8位地址。P2口:P2是一个带有内部上拉电阻的8位双向I口,P2的
33、输出缓冲级可驱动(吸收或输出电流)4个TL逻辑门电路。对端口写“”,通过内部的上拉电阻把端口拉到高电平,此时可作输入口。作为输入口使用时,因为内部存在上拉电阻,某个引脚被外部信号拉低时会输出一个电流(IL)。在访问外部程序存储器或6位四肢的外部数据存储器(例如执行OVXDPR指令)时,P2口送出高8位地址数据,在访问位地址的外部数据存储器(例如执行MOVX指令)时,口线上的内容(也即特殊功能寄存器(FR)区中2寄存器的内容),在整个访问期间不改变。Fla编程和程序校验时,P2也接收高位地址和其他控制信号。P3口:P是一个带有内部上拉电阻的位双向I/O口,P的输出缓冲级可驱动(吸收或输出电流)4个TL逻辑门电路。对端口写“1”,通过内部的上拉电阻把端口拉到高电平,此时可作输入口。作为输入口使用时,因为内部存在上拉电阻,某个引脚被外部信号拉低时会输出一个电流(IIL).口还接收一些用于Flas闪速存储器编程和程序校验的控制信号。RST:复位输入.当振荡器工作时,R引脚