




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
single puterThemonolithicintegratedcircuitsaidthatthemonolithicmicrocontroller,itisnotcompletessomelogicalfunctionthechip,butintegratesacomputersystemtoachipon.Summaryspeaking:Achiphaseacomputer.Itsvolumeissmall,thequalityislight,andthepricecheap,forthestudy,theapplicationandthedevelopmenthasprovidedtheconvenientcondition.Atthesametime,thestudyusemonolithicintegratedcircuitisunderstandsthecomputerprincipleandthestructurebestchoice.Themonolithicintegratedcircuitinterioralsouseswiththecomputerfunctionsimilarmodule,forinstanceCPU,memory,parallelmainline,butalsohaswiththeharddiskbehaveidenticallythememorycomponent7whatisdifferentisitsthesepartperformanceisoppositeourhome-usecomputerweakmany,butthepriceisalsolow,generallydoesnotsurpass10YuanthenMadesomecontrolelectricapplianceonekindwithitisnotthe'verycomplexworkfoot,Weusenowthecompleyautomaticdrumwasher,thetoonpetti-coatpipe:VCDandsoonInsidetheelectricalappliancesmayseeitsform!Itismainlytakesthecontrolsectionthecorepart.Itisonekindofonline-likereal-timecontrolcomputer,online-likeisthescenecontrol,needstohavethestrongantijammingability,thelowcost,thisisalsoandtheoff-linetypecomputer(forinstancehomeusePC,)maindifferenceThemonolithicintegratedcircuitisdependingontheprocedure,andmayrevise.Realizesthedifferentfunctionthroughthedifferentprocedure,particularlyspecialuniquesomefunctions,thisisothercomponentneedstotaketheverybigefforttobeabletoachieve,somearethefloweredbigstrengthisalsoverydifficulttoachieve.Oneisnottheverycomplexfunction,ifdevelopsinthe50swiththeUS74series,orthe60s'sCD4000seriesthesepurehardwaredodecides,theelectriccircuitcertainlyarcabigPCBboard!Butif,ifsucceededinthe70swiththeUSputsinthemarkettheseriesmonolithicintegratedcircuit,theresultwillhavethehugedifference.BecauseonlythemonolithicaswellasredundantreliabilityTheCPUisthekeycomponentofadigitalcomputer.Itspurposeistodecodeinstructionreceivedfrommemoryandperformtransfers,arithmetic,logic,andcontroloperationswithdatastoredininternalregisters,memory,orI/Ointerfaceunits.Externally,theCPUprovidesoneormorebusesfortransferringinstructions,data,andcontrolinformationtoandfromcomponentsconnectedtoit.Amicrocontrollerispresentinthekeyboardandinthemonitorinthegenericcomputer;thusthesecomponentsarealsoshaded.Insuchmicrocontrollers,theCPUmaybequitedifferentfromthosediscussedinthischapter.Thewordlengthsmaybeshort,thenumberofregisterssmall,andtheinstructionsetslimited.Performance,relativelyspeaking,ispoor,butadequateforthetask.Mostimportant,thecostofthesemicrocontrollersisverylow,makingtheirusecosteffective.Becausethemonolithicintegratedcircuittothecostissensitive,thereforepresentoccupiesthedominantstatusthesoftwareisthemostpreliminaryassemblylanguage7itwasexceptthebinarymachinecodeabovethemostpreliminarylanguage,sincewhyweresuchpreliminarymustuse?Whyhigh-leveldidthelanguagealreadyachievethevisualizationprogramminglevelnottouse?Thereasonisverysimple,isthemonolithicintegratedcircuitdocsnothavehomecomputersuchCPU,andalsohasnotlookedliketheharddisksuchmassmemoryequipment.Insideevenifavisualizationhigherorderlanguagecompilationscriptonlythenabutton,alsowillachieveseveraldozensKthesizes!DoesnotspeakanythingregardingthehomeusePCharddisk,butsaysregardingthemonolithicintegratedcircuitcannotaccept.Themonolithicintegratedcircuitinthehardwaresourceaspect'struth,ifattains puter'sonoperatingsystemandtheapplicationsoftwarehomeusePCtocomeupthemovement,homeusePCcouldalsonotwithstand.Itcanbesaidthatthe20thcenturysurmountedthree"theelectricity"thetime,namelytheelectricaltime,theElectronicAgeandalreadyenteredcomputertime.However,thiskindofcomputer,usuallyreferstothealcomputer,iscalledPCmachine.Itbythemainengine,thekeyboard,themonitorandsooniscomposed.Alsohasakindofcomputer,mostpeopleactuallynothowfamiliar.Thiskindofcomputerisentrustswiththeinligenceeachkindofmechanicalmonolithicintegratedcircuit(alsotocallmicrocontroller),Thiskindofcomputer'ssmallestsystemonlyhasusedasthenamesuggestsapieceofintegratedcircuit,thencarriesonthesimpleoperationandthecontrol.Becauseitsvolumeissmall,usuallyhidesinisaccusedthemachinery"thebelly".Itintheentireinstallment,ysishavinglikethehumanbrainsrole,itwentwrong,theentireinstallmentparalyzed.Now,thiskindofmonolithicintegratedcircuit'susealreadyverywidespread,liketheinligentmeasuringappliance,thesolidworkpaidbytimecontrol,thecommunicationequipment,theguidancesystem,thedomesticelectricappliancesandsoon,Onceeachproductusedthemonolithicintegratedcircuit,couldgetupcausestheeffectwhichtheproductturnedtoanewgeneration,oftenbeforeproductrangecrownbyadjective----‘inligence’,likeinligencewasherandsoon.Nowsomefactory'stechnicalnelorotherextra-curricularelectronicexploiterdocertainproducts,arenottheelectriccircuitaretoocomplex,isthefunctionistoosimple,andisimitatedextremelyeasily.Investigatesitsreason,possiblyoncard,intheproducthasnotusedonthemonolithicintegratedcircuitorotherprogrblelogicalcomponent.SCMisanintegratedcircuitchip,istheuseoflargescaleintegratedcircuittechnologytoadataprocessingcapabilityofCPUCPUrandomaccessmemoryRAM,read-onlymemoryROM,avarietyofI/Oportandinterruptsystem,timers/timerfunctions(whichmayalsoincludedisydrivercircuitry,pulsewidthmodulationcircuit,ogmultiplexer,A/Dconvertercircuit)integratedintoasiliconconstituteasmallandcompletecomputersystems.SCMisalsoknownasmicro-controller(Microcontroller),becauseitisthefirsttobeusedinindustrialcontrol.OnlyasinglechipbytheCPUchipdevelopedfromadedicatedprocessor.ThefirstdesignisbyalargenumberofperipheralsandCPUonachipinthecomputersystem,smaller,moreeasilyintegratedintoacomplexanddemandingonthevolumecontroldevicewhich.TheZ80INisthefirstdesignedinaccordancewiththisideaprocessor,thenonthedevelopmentofmicrocontrolleranddedicatedprocessorswillbepartingways.Are8-bitmicrocontrollerearlyor4bits.OneofthemostsuccessfulistheIN8031,forasimple,reliableandgoodperformancewasalotofpraise.Thendevelopedin8031outofMCS51MCUSystems.SCMsystemsbasedonthissystemuntilnowisstillwidelyused.Withtheincreasedrequirementsofindustrialcontrolfield,begana16-bitmicrocontroller,butnotidealbecausethecosthasnotbeenverywidelyused.After90yearswiththegreatdevelopmentofconsumerelectronics,microcontrollertechnologyhasbeenahugeincrease.WithINi960series,especiallythelaterseriesofwidelyusedARM,32-bitmicrocontrollerquicklyrecehigh-end16-bitMCUstatusandenterthemainstreammarket.Thetraditional8-bitmicrocontrollerperformancehavebeentherapidincreasecapacityincreasecomparedto80thenumberoftimes.Currently,high-end32-bitmicrocontrollerclockedover300MHz,theperformancecatchingthemid-90sdedicatedprocessor,whiletheaveragemodelpricesfalltooneU.S.dollar,themosthigh-endmodelonly10dollars.ModernSCMsystemsarenolongeronlyinthedevelopmentanduseofbaremetalenvironment,alargeofproprietaryembeddedoperatingsystemiswidelyusedinthefullrangeofSCM.Thehandheldcomputersandcellphonesasthecoreprocessingofhigh-endmicrocontrollercanevenuseadedicatedWindowsandLinuxoperatingsystems.SCMismoresuitablethanthespecificprocessorusedinembeddedsystems,soitwasuptotheapplication.InfactthenumberofSCMistheworld'slargestcomputer.Modernhumanlifeusedinalmosteverypieceofelectronicandmechanicalproductswillbeintegratedsinglechip.Phone,ephone,calculator,homeappliances,electronictoys,handheldcomputersandcomputeraccessoriessuchasamousewitha1-2inboththeDepartmentofSCM.alcomputerwillhavealargenumberofSCMinthework.Generalcarwithmorethan40microcontroller,acomplexindustrialcontrolsystemsmayevenhundredsofsinglechipatthesametimework!SCMisnotonlyfarexceedsnumberofPCandothercomputingthesum,orevenmorethanthenumberofhumanSinglechip,alsoknownassingle-chipmicrocontroller,itisnotcompleteacertainlogicchips,buttoacomputersystemintegratedintoachip.Equivalenttoa puter,andcomputerthanjustthelackofamicrocontrollerI/Odevices.Generaltalk:achip esacomputer.Itssmallsize,lightweight,cheap,forthestudy,applicationanddevelopmentoffacilitiesprovided.Atthesametime,learningtousetheMCUistounderstandtheprincipleandstructureofthecomputerthebestoption.Microcontrollerandthecomputerfunctionsinternallywithsimilarmodules,suchasCPU,memory,parallelbus,thesameeffectthere,andharddiskmemorydevice,isitdifferentpropertiesofthesecomponentsarerelativelyweakmanyofourhomecomputer,butthepriceislow,usuallynotmorethan10yuanyoucandowithitsomecontrolforaclassisnotverycomplicatedelectricalworkisenoughof.Weareusingautomaticdrumwashingmachine,smokehood,VCDandsoonapplianceswhichcouldseeitsshadow!Itismainlypartofthecorecomponentsasthecontrol.tisanonlinereal-timecontrolcomputer,on-lineison-sitecontrol,needtohavestronganti-interferenceability,lowcost,andthisis,andoff-linecomputer(suchashomePC),themaindifference.Singlechip.MCUisthroughrunning,andcanbemodified.Throughdifferentprocedurestoachievedifferentfunctions,inparticularspecialuniquefeatures,thisisanotherdevicemucheffortneedstobedone,somearegreateffortsareverydifficulttoachieve.Anotverycomplexfunctionsifthe50'swiththeUnitedStatesdeveloped74series,orthe60'sCD4000seriesofthesepurehardwarebuttoned,thenthecircuitmustbealargePCBboard!ButiftheUnitedStatesifthe70'swithaseriesofsuccessfulSCMmarket,theresultwillbeadrasticchange!Justbecauseyouarepreparedby puterprogramscanachievehighinligence,highefficiencyandhighreliability!Asthemicrocontrolleronthecost-sensitive,sonowthedominantsoftwareorthelowestlevelassemblylanguage,whichisthelowestlevelinadditiontomorethanbinarymachinecodelanguage,andassolowwhyistheuse?Manyhigh-levellanguagehasreachedthelevelofvisualprogrammingWhyisnotit?ThereasonissimplythatthereisnohomecomputerasasinglechipCPU,notashardasamassstoragedevice.Avisualizationofsmallhigh-levellanguageprogramisonlyonebuttononitthough,willreachtensofKinsize!ForthehomePC'sharddriveintermsofnothingbutspeakingfortheMCUisnotacceptable.SCMintheutilizationofhardwareresourcestobeveryhighforthejobsoalthoughtheoriginalisstillinthecompilationofalotofuse.Thesametoken,ifthegiantcomputeroperatingsystemandapplicationsrunupgethomePC,homePC,alsobearnotwork.Canbesaidthatthetwentiethcenturyacrossthethree"power"era,thatis,theageofelectricity,theelectronicageandhasenteredintothecomputerage.However,thiscomputer,usuallyreferstothealcomputer,referredtoasPC.Itconsistsofthehost,keyboard,monitorandothercomponents.Anothertypeofcomputer,mostpeopledonotknowhow.Thiscomputeristogiveallkindsofmachinery,inligentsinglechip(alsoknownasmicro-controller).Asthenamesuggests,thiscomputersystemtookonlyaminimalintegratedcircuit,canbeasimpleoperationandcontrol.Becauseitissmall,usuallyinthechargedwithpossessionofmechanical"stomach"in.Itisinthedevice,likethehumanbrainysarole,itgoeswrong,thewholentwasparalyzed.Now,thismicrocontrollerhasbeenverywidelyusedinthefield,suchassmartmeters,real-timeindustrialcontrol,communicationsequipment,navigationsystems,andhouseholdappliances.OnceallkindsofproductswereusingSCM,canservetoupgradetheeffectivenessofproducts,oftenintheproductnameprecededbytheadjective-"inligent",suchasinligentwashingmachines.Nowsometechnicalneloffactoriesorotheramateurelectronicsdeveloperstoengageinoutofcertainproducts,notthecircuitistoocomplicated,thatfunctionistoosimpleandcaneasilybecopied.Thereasonmaybestuckintheproductdidnotuseamicrocontrollerorotherprogrblelogicdevice.TheAT89C51isalow-power,high-performanceCMOS8-bit puterwith4KbytesofFlashProgrbleandErasableReadOnlyMemory(PEROM)and128bytesRAM.ThedeviceismanufacturedusingAtmel’shighdensitynonvolatilememorytechnologyandiscompatiblewiththeindustrystandardMCS-51?instructionsetandpinout.Thechipcombinesaversatile8-bitCPUwithFlashonamonolithicchip,theAtmelAT89C51isapowerful puterwhichprovidesahighlyflexibleandcosteffectivesolutiontomanyembeddedcontrolapplications.CompatiblewithMCS-51?4KBytesofIn-SystemReprogrbleFlashEndurance:1,000Write/EraseFullyStaticOperation:0Hzto24Three-LevelProgramMemory128x8-BitInternal32ProgrbleI/OTwo16-BitSixInterruptProgrbleSerialLowPowerIdleandPowerDownTheAT89C51providesthefollowingstandardfeatures:4KbytesofFlash,128bytesofRAM,32I/Olines,two16-bittimer/counters,afivevectortwo-levelinterruptarchitecture,afullduplexserialport,on-chiposcillatorandclockcircuitry.Inaddition,theAT89C51isdesignedwithstaticlogicforoperationdowntozerofrequencyandsupportstwosoftwareselectablepowersavingmodes.TheIdleModestopstheCPUwhileallowingtheRAM,timer/counters,serialportandinterruptsystemtocontinuefunctioning.ThePowerDownModesavestheRAMcontentsbutzestheoscillatordisablingallotherchipfunctionsuntilthenexthardwarereset.PinVCCSupplyGNDPortPort0isan8-bitopendrainbidirectionalI/Oport.AsanoutputporteachpincansinkeightTTLinputs.Whenisarewrittentoport0pins,thepinscanbeusedashighimpedanceinputs.Port0mayalsobeconfiguredtobethemultiplexedloworderaddress/databusduringaccessestoexternalprogramanddatamemory.InthismodeP0hasinternalpullups.Port0alsoreceivesthecodebytesduringFlashprogramming,andoutputsthecodebytesduringprogramverification.Externalpullupsarerequiredduringprogramverification.PortPort1isan8-bitbidirectionalI/Oportwithinternalpullups.ThePort1outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort1pinstheyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port1pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseoftheinternalpullups.Port1alsoreceivesthelow-orderaddressbytesduringFlashprogrammingandPortPort2isan8-bitbidirectionalI/Oportwithinternalpullups.ThePort2outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort2pinstheyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port2pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseoftheinternalpullups.Port2emitsthehigh-orderaddressbyteduringfetchesfromexternalprogrammemoryandduringaccessestoexternaldatamemorythatuse16-bitaddresses(MOVX@DPTR).Inthisapplicationitusesstronginternalpull-upswhenemitting1s.Duringaccessestoexternaldatamemorythatuse8-bitaddresses(MOVX@RI),Port2emitsthecontentsoftheP2SpecialFunctionRegister.Port2alsoreceivesthehigh-orderaddressbitsandsomecontrolsignalsduringFlashprogrammingandverification.PortPort3isan8-bitbidirectionalI/Oportwithinternalpullups.ThePort3outputbufferscansink/sourcefourTTLinputs.When1sarewrittentoPort3pinstheyarepulledhighbytheinternalpullupsandcanbeusedasinputs.Asinputs,Port3pinsthatareexternallybeingpulledlowwillsourcecurrent(IIL)becauseofthepullups.Port3alsoservesthefunctionsofvariousspecialfeaturesoftheAT89C51aslistedPort alternate rxd(serialinput txd(serialoutput ^int0(external ^int1(external t0(timer0external t1(timer1external ^WR(externaldatamemorywrite ^rd(externaldatamemoryreadPort3alsoreceivessomecontrolsignalsforFlashprogrammingandResetinput.AhighonthispinfortwomachinecycleswhiletheoscillatorisrunningresetstheAddressLatchEnableoutputpulseforlatchingthelowbyteoftheaddressduringaccessestoexternalmemory.Thispinisalsotheprogrampulseinput(PROG)duringFlashprogramming.InnormaloperationALEisemittedataconstantrateof1/6theoscillatorfrequency,andmaybeusedforexternaltimingorclockingpurposes.Note,however,thatoneALEpulseisskippedduringeachaccesstoexternalDataMemory.Ifdesired,ALEoperationcanbedisabledbysettingbit0ofSFRlocation8EH.Withthebitset,ALEisactiveonlyduringaMOVXorMOVCinstruction.Otherwise,thepinisweaklypulledhigh.SettingtheALE-disablebithasnoeffectifthemicrocontrollerisinexternalexecutionmode.ProgramStoreEnableisthereadstrobetoexternalprogramWhentheAT89C51isexecutingcodefromexternalprogrammemory,PSENisactivatedtwiceeachmachinecycle,exceptthattwoPSENactivationsareskippedduringeachaccesstoexternaldataExternalAccessEnable.EAmustbestrappedtoGNDinordertoenablethedevicetofetchcodefromexternalprogrammemorylocationsstartingat0000HuptoFFFFH.Note,however,thatiflockbit1isprogrammed,EAwillbeinternallylatchedonreset.EAshouldbestrappedtoVCCforinternalprogramThispinalsoreceivesthe12-voltprogrammingenablevoltage(VPP)duringFlashprogramming,forpartsthatrequire12-voltVPP.InputtotheinvertingoscillatoramplifierandinputtotheinternalclockoperatingOutputfromtheinvertingoscillatorOscillatorXTAL1andXTAL2aretheinputandoutput,respectively,ofaninvertingamplifierwhichcanbeconfiguredforuseasanon-chiposcillator,asshowninFigure1.Eitheraquartzcrystalorceramicresonatormaybeused.Todrivethedevicefromanexternalclocksource,XTAL2shouldbeleftunconnectedwhileXTAL1isdrivenasshowninFigure2.Therearenorequirementsonthedutycycleoftheexternalclocksignal,sincetheinputtotheinternalclockingcircuitryisthroughadivide-by-twoflip-flop,butminimumandumvoltagehighandlowtimespecificationsmustbeobserved.IdleInidlemode,theCPUputsitselftosleepwhilealltheonchipperipheralsremainactive.Themodeisinvokedbysoftware.Thecontentoftheon-chipRAMandallthespecialfunctionsregistersremainunchangedduringthismode.Theidlemodecanbeterminatedbyanyenabledinterruptorbyahardwarereset.Itshouldbenotedthatwhenidleisterminatedbyahardwarereset,thedevicenormallyresumesprogramexecution,fromwhereitleftoff,uptotwomachinecyclesbeforetheinternalresetalgorithmtakescontrol.On-chiphardwareinhibitsaccesstointernalRAMinthisevent,butaccesstotheportpinsisnotinhibited.ToeliminatethepossibilityofanunexpectedwritetoaportpinwhenIdleisterminatedbyreset,theinstructionfollowingtheonethatinvokesIdleshouldnotbeonethatwritestoaportpinortoexternalmemory.算機系統(tǒng)集成到一 上概括的講一 就成了一臺計算機它的體積小10元即可,用它來做一些控制電器一類不是很復(fù)雜的工作足矣了。我們現(xiàn)在用的全自動滾筒洗農(nóng)機、排煙罩、VCD等等的家,它是一種存線式實時控
溫馨提示
- 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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 計算機二級VB考試命題趨勢及試題及答案
- 企業(yè)經(jīng)營風險與戰(zhàn)略抉擇試題及答案
- 提升2025年公司戰(zhàn)略執(zhí)行與風險管理能力的策略試題及答案
- 法學(xué)概論中的程序公正與公平原則試題及答案
- 網(wǎng)絡(luò)新動向的管理員試題及答案解析
- 數(shù)據(jù)倉庫與數(shù)據(jù)挖掘的結(jié)合試題及答案
- 高考作文如何引入個人觀點試題及答案
- 持續(xù)進步法學(xué)概論試題及答案
- 天津市和平區(qū)雙菱中學(xué)2025屆七下數(shù)學(xué)期末學(xué)業(yè)質(zhì)量監(jiān)測模擬試題含解析
- 2025年軟件設(shè)計師考試復(fù)習(xí)全景及試題及答案
- 礦山委托經(jīng)營協(xié)議書
- 靜脈輸液不良反應(yīng)應(yīng)急預(yù)案與處理流程
- GB/T 45656-2025二手電子產(chǎn)品可用程度分級規(guī)范
- 備戰(zhàn)2025年高考英語搶分秘籍(新高考專用)猜押語法填空(話題+體裁)(學(xué)生版+解析)
- 醫(yī)院收費室筆試題及答案
- 江蘇省南京市、鹽城市2025屆高三年級5月第二次模擬考試英語(南京鹽城二模)
- 浙江省杭州市2024年中考英語真題(含答案)
- 《陸上風電場工程設(shè)計概算編制規(guī)定及費用標準》(NB-T 31011-2019)
- 天文學(xué)導(dǎo)論知到章節(jié)答案智慧樹2023年中國科學(xué)技術(shù)大學(xué)
- 立式數(shù)控加工中心主軸箱設(shè)計
- 整車重量管理在汽車開發(fā)過程中的應(yīng)用和方法
評論
0/150
提交評論