




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rè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.算機(jī)系統(tǒng)集成到一 上概括的講一 就成了一臺計算機(jī)它的體積小10元即可,用它來做一些控制電器一類不是很復(fù)雜的工作足矣了。我們現(xiàn)在用的全自動滾筒洗農(nóng)機(jī)、排煙罩、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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 夏季安全課件
- 2025年鄭州標(biāo)準(zhǔn)房屋租賃合同范本
- 北師大版三年級下冊期末測試語文試卷
- 安徽省徽師聯(lián)盟2023-2024學(xué)年高三上學(xué)期10月質(zhì)量檢測數(shù)學(xué)(原卷版)
- 預(yù)防疾病 擁抱健康
- 新生兒溶血病護(hù)理查房
- 血透電解質(zhì)紊亂護(hù)理措施
- 神經(jīng)外科護(hù)理小指南
- 腎功能不全護(hù)理業(yè)務(wù)查房
- 武漢交通職業(yè)學(xué)院《工程倫理機(jī)械工程》2023-2024學(xué)年第二學(xué)期期末試卷
- 浙江省杭州市2024年中考英語真題(含答案)
- 2024年黑龍江省哈爾濱市中考數(shù)學(xué)試卷(附答案)
- 《陸上風(fēng)電場工程設(shè)計概算編制規(guī)定及費(fèi)用標(biāo)準(zhǔn)》(NB-T 31011-2019)
- 銑床安全操作作業(yè)指導(dǎo)書
- 土地開發(fā)整理項目預(yù)算定額
- 消防管理制度的制作張貼規(guī)范及圖例
- 古河鉆機(jī)HCR1200構(gòu)造說明中文
- CT報告單--自己填
- DB4403∕T 199-2021 中醫(yī)藥健康文化宣教旅游示范基地評定規(guī)范
- 福州供電段接觸網(wǎng)設(shè)備檢修工藝
- 電力管道試通記錄表
評論
0/150
提交評論