单片机英语文献

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

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

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

资源描述

singlechiptemperaturesystem1.MCUAmicrocontroller(orMCU)isacomputer-on-a-chip.Itisatypeofmicroprocessoremphasizingself-sufficiencyandcost-effectiveness,incontrasttoageneral-purposemicroprocessor(thekindusedinaPC).Themajorityofcomputersystemsinusetodayareembeddedinothermachinery,suchastelephones,clocks,appliances,vehicles,andinfrastructure.Anembeddedsystemusuallyhasminimalrequirementsformemoryandprogramlengthandmayrequiresimplebutunusualinput/outputsystems.Forexample,mostembeddedsystemslackkeyboards,screens,disks,printers,orotherrecognizableI/Odevicesofapersonalcomputer.Theymaycontrolelectricmotors,relaysorvoltages,andreadswitches,variableresistorsorotherelectronicdevices.Often,theonlyI/Odevicereadablebyahumanisasinglelight-emittingdiode,andseverecostorpowerconstraintscaneveneliminatethat.Incontrasttogeneral-purposeCPUs,microcontrollersdonothaveanaddressbusoradatabus,becausetheyintegratealltheRAMandnon-volatilememoryonthesamechipastheCPU.Becausetheyneedfewerpins,thechipcanbeplacedinamuchsmaller,cheaperpackage.Integratingthememoryandotherperipheralsonasinglechipandtestingthemasaunitincreasesthecostofthatchip,butoftenresultsindecreasednetcostoftheembeddedsystemasawhole.(EvenifthecostofaCPUthathasintegratedperipheralsisslightlymorethanthecostofaCPU+externalperipherals,havingfewerchipstypicallyallowsasmallerandcheapercircuitboard,andreducesthelaborrequiredtoassembleandtestthecircuitboard).Thistrendleadstodesign.Amicrocontrollerisasingleintegratedcircuit,commonlywiththefollowingfeatures:centralprocessingunit-rangingfromsmallandsimple4-bitprocessorstosophisticated32-or64-bitprocessorsinput/outputinterfacessuchasserialports(UARTs)otherserialcommunicationsinterfaceslikeI²C,SerialPeripheralInterfaceandControllerAreaNetworkforsysteminterconnectperipheralssuchastimersandwatchdogRAMfordatastorageROM,EPROM,EEPROMorFlashmemoryforprogramstorageclockgenerator-oftenanoscillatorforaquartztimingcrystal,resonatororRCcircuitmanyincludeanalog-to-digitalconverters.ThisintegrationdrasticallyreducesthenumberofchipsandtheamountofwiringandPCBspacethatwouldbeneededtoproduceequivalentsystemsusingseparatechipsandhaveprovedtobehighlypopularinembeddedsystemssincetheirintroductioninthe1970s.SomemicrocontrollerscanaffordtouseaHarvardarchitecture:separatememorybusesforinstructionsanddata,allowingaccessestotakeplaceconcurrently.Thedecisionofwhichperipheraltointegrateisoftendifficult.TheMicrocontrollervendorsoftentradeoperatingfrequenciesandsystemdesignflexibilityagainsttime-to-marketrequirementsfromtheircustomersandoveralllowersystemcost.Manufacturershavetobalancetheneedtominimizethechipsizeagainstadditionalfunctionality.Microcontrollerarchitecturesareavailablefrommanydifferentvendorsinsomanyvarietiesthateachinstructionsetarchitecturecouldrightlybelongtoacategoryoftheirown.Chiefamongthesearethe8051,Z80andARMderivatives.[citationneeded]Amicrocontroller(alsoMCUorµC)isafunctionalcomputersystem-on-a-chip.Itcontainsaprocessorcore,memory,andprogrammableinput/outputperipherals.MicrocontrollersincludeanintegratedCPU,memory(asmallamountofRAM,programmemory,orboth)andperipheralscapableofinputandoutput.Itemphasizeshighintegration,incontrasttoamicroprocessorwhichonlycontainsaCPU(thekindusedinaPC).Inadditiontotheusualarithmeticandlogicelementsofageneralpurposemicroprocessor,themicrocontrollerintegratesadditionalelementssuchasread-writememoryfordatastorage,read-onlymemoryforprogramstorage,Flashmemoryforpermanentdatastorage,peripherals,andinput/outputinterfaces.Atclockspeedsofaslittleas32KHz,microcontrollersoftenoperateatverylowspeedcomparedtomicroprocessors,butthisisadequatefortypicalapplications.Theyconsumerelativelylittlepower(milliwattsorevenmicrowatts),andwillgenerallyhavetheabilitytoretainfunctionalitywhilewaitingforaneventsuchasabuttonpressorinterrupt.Powerconsumptionwhilesleeping(CPUclockandperipheralsdisabled)maybejustnanowatts,makingthemidealforlowpowerandlonglastingbatteryapplications.Microcontrollersareusedinautomaticallycontrolledproductsanddevices,suchasautomobileenginecontrolsystems,remotecontrols,officemachines,appliances,powertools,andtoys.Byreducingthesize,cost,andpowerconsumptioncomparedtoadesignusingaseparatemicroprocessor,memory,andinput/outputdevices,microcontrollersmakeiteconomicaltoelectronicallycontrolmanymoreprocesses.Themajorityofcomputersystemsinusetodayareembeddedinothermachinery,suchasautomobiles,telephones,appliances,andperipheralsforcomputersystems.Thesearecalledembeddedsystems.Whilesomeembeddedsystemsareverysophisticated,manyhaveminimalrequirementsformemoryandprogramlength,withnooperatingsystem,andlowsoftwarecomplexity.Typicalinputandoutputdevicesincludeswitches,relays,solenoids,LEDs,smallorcustomLCDdisplays,radiofrequencydevices,andsensorsfordatasuchastemperature,humidity,lightleveletc.Embeddedsystemsusuallyhavenokeyboard,screen,disks,printers,orotherrecognizableI/Odevicesofapersonalcomputer,andmaylackhumaninteractiondevicesofanykind.Itismandatorythatmicrocontrollersproviderealtimeresponsetoeventsintheembeddedsystemtheyarecont

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

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

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

×
保存成功