AT89S52外文文獻外文翻譯、中英對照、英漢互譯.doc_第1頁
AT89S52外文文獻外文翻譯、中英對照、英漢互譯.doc_第2頁
AT89S52外文文獻外文翻譯、中英對照、英漢互譯.doc_第3頁
AT89S52外文文獻外文翻譯、中英對照、英漢互譯.doc_第4頁
AT89S52外文文獻外文翻譯、中英對照、英漢互譯.doc_第5頁
已閱讀5頁,還剩9頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

AT89S52TheAT89S52isalow-power,high-performanceCMOS8-bitmicrocomputerwith8KbytesofFlashprogrammableanderasablereadonlymemory(PEROM).ThedeviceismanufacturedusingAtmelshigh-densitynonvolatilememorytechnologyandiscompatiblewiththeindustry-standard80S51and80S52instructionsetandpinout.Theon-chipFlashallowstheprogrammemorytobereprogrammedin-systemorbyaconventionalnonvolatilememoryprogrammer.Bycombiningaversatile8-bitCPUwithFlashonamonolithicchip,theAtmelAT89S52isapowerfulmicrocomputerwhichprovidesahighly-flexibleandcost-effectivesolutiontomanyembeddedcontrolapplications.TheAT89S52providesthefollowingstandardfeatures:8KbytesofFlash,256bytesofRAM,32I/Olines,three16-bittimer/counters,asix-vectortwo-levelinterruptarchitecture,afull-duplexserialport,on-chiposcillator,andclockcircuitry.Inaddition,theAT89S52isdesignedwithstaticlogicforoperationdowntozerofrequencyandsupportstwosoftwareselectablepowersavingmodes.TheIdleModestopstheCPUwhileallowingtheRAM,timer/counters,serialport,andinterruptsystemtocontinuefunctioning.ThePower-downmodesavestheRAMcontentsbutfreezestheoscillator,disablingallotherchipfunctionsuntilthenexthardwarereset.VCC:Supplyvoltage.GND:Ground.Port0:Port0isan8-bitopendrainbi-directionalI/Oport.Asanoutputport,eachpincansinkeightTTLinputs.When1sarewrittentoport0pins,thepinscanbeusedashigh-impedanceinputs.Port0canalsobeconfiguredtobethemultiplexedlow-orderaddress/databusduringaccessestoexternalpro-gramanddatamemory.Inthismode,P0hasinternalpullups.Port0alsoreceivesthecodebytesduringFlashprogrammingandoutputsthecodebytesduringprogramverification.Externalpullupsarerequiredduringprogramverification.Port1:Port1isan8-bitbi-directionalI/Oportwithinternalpullups.ThePort1outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort1pins,theyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port1pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseoftheinternalpullups.Inaddition,P1.0andP1.1canbeconfiguredtobethetimer/counter2externalcountinput(P1.0/T2)andthetimer/counter2triggerinput(P1.1/T2EX),respectively,asshowninthefollowingtable.Port1alsoreceivesthelow-orderaddressbytesduringFlashprogrammingandverification.Port2:Port2isan8-bitbi-directionalI/Oportwithinternalpullups.ThePort2outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort2pins,theyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port2pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseoftheinternalpullups.Port2emitsthehigh-orderaddressbyteduringfetchesfromexternalprogrammemoryandduringaccessestoexternaldatamemorythatuse16-bitaddresses(MOVXDPTR).Inthisapplication,Port2usesstronginternalpullupswhenemitting1s.Duringaccessestoexternaldatamemorythatuse8-bitaddresses(MOVXRI),Port2emitsthecontentsoftheP2SpecialFunctionRegister.Port2alsoreceivesthehigh-orderaddressbitsandsomecontrolsignalsduringFlashprogrammingandverification.Port3:Port3isan8-bitbi-directionalI/Oportwithinternalpullups.ThePort3outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort3pins,theyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port3pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseofthepullups.Port3alsoservesthefunctionsofvariousspecialfeaturesoftheAT89C51,asshowninthefollowingtable.Port3alsoreceivessomecontrolsignalsforFlashprogrammingandverification.RST:Resetinput.Ahighonthispinfortwomachinecycleswhiletheoscillatorisrunningresetsthedevice.ALE/PROG:AddressLatchEnableisanoutputpulseforlatchingthelowbyteoftheaddressduringaccessestoexternalmemory.Thispinisalsotheprogrampulseinput(PROG)duringFlashprogramming.Innormaloperation,ALEisemittedataconstantrateof1/6theoscillatorfrequencyandmaybeusedforexternaltimingorclockingpurposes.Note,however,thatoneALEpulseisskippedduringeachaccesstoexternaldatamemory.Ifdesired,ALEoperationcanbedisabledbysettingbit0ofSFRlocation8EH.Withthebitset,ALEisactiveonlyduringaMOVXorMOVCinstruction.Otherwise,thepinisweaklypulledhigh.SettingtheALE-disablebithasnoeffectifthemicrocontrollerisinexternalexecutionmode.PSEN:ProgramStoreEnableisthereadstrobetoexternalpro-grammemory.WhentheAT89S52isexecutingcodefromexternalpro-grammemory,PSENisactivatedtwiceeachmachinecycle,exceptthattwoPSENactivationsareskippedduringeachaccesstoexternaldatamemory.EA/VPP:ExternalAccessEnable.EAmustbestrappedtoGNDinordertoenablethedevicetofetchcodefromexternalprogrammemorylocationsstartingat0000HuptoFFFFH.Note,however,thatiflockbit1isprogrammed,EAwillbeinternallylatchedonreset.EAshouldbestrappedtoVccforinternalprogramexecutions.Thispinalsoreceivesthe12-voltprogrammingenablevoltage(Vpp)duringFlashprogrammingwhen12-voltprogrammingisselected.XTAL1:Inputtotheinvertingoscillatoramplifierandinputtotheinternalclockoperatingcircuit.XTAL2:Outputfromtheinvertingoscillatoramplifier.SpecialFunctionRegisters:Amapoftheon-chipmemoryareacalledtheSpecialFunctionRegister(SFR)spaceisshowninTable1.Notethatnotalloftheaddressesareoccupied,andunoccupiedaddressesmaynotbeimplementedonthechip.Readaccessestotheseaddresseswillingeneralreturnrandomdata,andwriteaccesseswillhaveanindeterminateeffect.Usersoftwareshouldnotwrite1stotheseunlistedlocations,sincetheymaybeusedinfutureproductstoinvokenewfeatures.Inthatcase,theresetorinactivevaluesofthenewbitswillalwaysbe0.Timer2RegistersControlandstatusbitsarecontainedinregistersT2CON(showninTable2)andT2MOD(showninTable4)forTimer2.Theregisterpair(RCAP2H,RCAP2L)aretheCapture/ReloadregistersforTimer2in16-bitcapturemodeor16-bitauto-reloadmode.InterruptRegistersTheindividualinterruptenablebitsareintheIEregister.TwoprioritiescanbesetforeachofthesixinterruptsourcesintheIPregister.DataMemory:TheAT89S52implements256bytesofon-chipRAM.Theupper128bytesoccupyaparalleladdressspacetotheSpecialFunctionRegisters.Thatmeanstheupper128byteshavethesameaddressesastheSFRspacebutarephysicallyseparatefromSFRspace.Whenaninstructionaccessesaninternallocationaboveaddress7FH,theaddressmodeusedintheinstructionspecifieswhethertheCPUaccessestheupper128bytesofRAMortheSFRspace.InstructionsthatusedirectaddressingaccessSFRspace.Forexample,thefollowingdirectaddressinginstructionaccessestheSFRatlocation0A0H(whichisP2).MOV0A0H,#dataInstructionsthatuseindirectaddressingaccesstheupper128bytesofRAM.Forexample,thefollowingindirectaddressinginstruction,whereR0contains0A0H,accessesthedatabyteataddress0A0H,ratherthanP2(whoseaddressis0A0H).MOVR0,#dataNotethatstackoperationsareexamplesofindirectaddressing,sotheupper128bytesofdataRAMareavailableasstackspace.InfraredInfrared(IR)lightiselectromagneticradiationwithawavelengthlongerthanthatofvisiblelight,measuredfromthenominaledgeofvisibleredlightat0.74microm-etres(m),andextendingconventionallyto300m.Thesewavelengthscorrespondtoafrequencyrangeofapproximately1to400THz,andincludemostofthethermalradiationemittedbyobjectsnearroomtemperature.Microscopically,IRlightistypicallyemittedorabsorbedbymoleculeswhentheychangetheirrotational-vibrationalmovements.Infraredlightisusedinindustrial,scientific,andmedicalapplications.Night-visiondevicesusinginfraredilluminationallowpeopleoranimalstobeobservedwithouttheobserverbeingdetected.Inastronomy,imagingatinfraredwavelengthsallowsobservationofobjectsobscuredbyinterstellardust.Infraredimagingcamerasareusedtodetectheatlossininsulatedsystems,observechangingbloodflowintheskin,andoverheatingofelectricalapparatus.MuchoftheenergyfromtheSunarrivesonEarthintheformofinfraredradiation.Sunlightatzenithprovidesanirradianceofjustover1kilowattpersquaremeteratsealevel.Ofthisenergy,527wattsisinfraredradiation,445wattsisvisiblelight,and32wattsisultravioletradiation.ThebalancebetweenabsorbedandemittedinfraredradiationhasacriticaleffectontheEarthsclimate.Objectsgenerallyemitinfraredradiationacrossaspectrumofwavelengths,butsometimesonlyalimitedregionofthespectrumisofinterestbecausesensorsusuallycollectradiationonlywithinaspecificbandwidth.Therefore,theinfraredbandisoftensubdividedintosmallersections.MuchoftheenergyfromtheSunarrivesonEarthintheformofinfraredradiation.Sunlightatzenithprovidesanirradianceofjustover1kilowattpersquaremeteratsealevel.Ofthisenergy,527wattsisinfraredradiation,445wattsisvisiblelight,and32wattsisultravioletradiation.ThebalancebetweenabsorbedandemittedinfraredradiationhasacriticaleffectontheEarthsclimate.Objectsgenerallyemitinfraredradiationacrossaspectrumofwavelengths,butsometimesonlyalimitedregionofthespectrumisofinterestbecausesensorsusuallycollectradiationonlywithinaspecificbandwidth.Therefore,theinfraredbandisoftensubdividedintosmallersections.Heat/HeatingInfraredradiationispopularlyknownasheatradiation,butlightandelectromagneticwavesofanyfrequencywillheatsurfacesthatabsorbthem.InfraredlightfromtheSunonlyaccountsfor49%oftheheatingoftheEarth,withtherestbeingcausedbyvisiblelightthatisabsorbedthenre-radiatedatlongerwavelengths.Visiblelightorultraviolet-emittinglaserscancharpaperandincandescentlyhotobjectsemitvisibleradiation.Objectsatroomtemperaturewillemitradiationmostlyconcentratedinthe8to25mband,butthisisnotdistinctfromtheemissionofvisiblelightbyincandescentobjectsandultravioletbyevenhotterobjects(seeblackbodyandWiensdisplacementlaw).Heatisenergyintransientformthatflowsduetotemperaturedifference.Unlikeheattransmittedbythermalconductionorthermalconvection,radiationcanpropagatethroughavacuum.Theconceptofemissivityisimportantinunderstandingtheinfraredemissionsofobjects.Thisisapropertyofasurfacewhichdescribeshowitsthermalemissionsdeviatefromtheidealofablackbody.Tofurtherexplain,twoobjectsatthesamephysicaltemperaturewillnotappearthesametemperatureinaninfraredimageiftheyhavedifferingemissivities.ThermographyInfraredradiationcanbeusedtoremotelydeterminethetemperatureofobjects(iftheemissivityisknown).Thisistermedthermography,orinthecaseofveryhotobjectsintheNIRorvisibleitistermedpyrometry.Thermography(thermalimaging)ismainlyusedinmilitaryandindustrialapplicationsbutthetechnologyisreachingthepublicmarketintheformofinfraredcamerasoncarsduetothemassivelyreducedproductioncosts.Thermographic.camerasdetectradiationintheinfraredrangeoftheelectromagneticspectrum(roughly90014,000nanometersor0.914m)andproduceimagesofthatradiation.Sinceinfraredradiationisemittedbyallobjectsbasedontheirtemperatures,accordingtotheblackbodyradiationlaw,thermographymakesitpossibletoseeonesenvironmentwithorwithoutvisibleillumination.Theamountofradiationemittedbyanobjectincreaseswithtemperature,thereforethermographyallowsonetoseevariationsintemperature(hencethename).Infraredradiationcanbeusedasadeliberateheatingsource.Forexampleitisusedininfraredsaunastoheattheoccupants,andalsotoremoveicefromthewingsofaircraft(de-icing).FIRisalsogainingpopularityasasafeheattherapymethodofnaturalhealthcare&physiotherapy.Infraredcanbeusedincookingandheatingfoodasitpredominantlyheatstheopaque,absorbentobjects,ratherthantheairaroundthem.Infraredheatingisalsobecomingmorepopularinindustrialmanufacturingprocesses,e.g.curingofcoatings,formingofplastics,annealing,plasticwelding,printdrying.Intheseapplications,infraredheatersreplaceconvectionovensandcontactheating.Efficiencyisachievedbymatchingthewavelengthoftheinfraredheatertotheabsorptioncharacteristicsofthematerial.ClimatologyInthefieldofclimatology,atmosphericinfraredradiationismonitoredtodetecttrendsintheenergyexchangebetweentheearthandtheatmosphere.ThesetrendsprovideinformationonlongtermchangesintheEarthsclimate.Itisoneoftheprimaryparametersstudiedinresearchintoglobalwarmingtogetherwithsolarradiation.Apyrgeometerisutilizedinthisfieldofresearchtoperformcontinuousoutdoormeasurements.Thisisabroadbandinfraredradiometerwithsensitivityforinfraredradiationbetweenapproximately4.5mand50m.NightvisionInfraredisusedinnightvisionequipmentwhenthereisinsufficientvisiblelighttosee.Nightvisiondevicesoperatethroughaprocessinvolvingtheconversionofambientlightphotonsintoelectronswhicharethenamplifiedbyache

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論