




已阅读5页,还剩7页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第1页外文文献资料MicrocontrollerAmicrocontroller(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,andreducesthelabor第2页requiredtoassembleandtestthecircuitboard).Thistrendleadstodesign.Amicrocontrollerisasingleintegratedcircuit,commonlywiththefollowingfeatures:centralprocessingunit-rangingfromsmallandsimple4-bitprocessorstosophisticated32-or64-bitprocessorsinput/outputinterfacessuchasserialports(UARTs)otherserialcommunicationsinterfaceslikeIC,SerialPeripheralInterfaceandControllerAreaNetworkforsysteminterconnectperipheralssuchastimersandwatchdogRAMfordatastorageROM,EPROM,EEPROMorFlashmemoryforprogramstorageclockgenerator-oftenanoscillatorforaquartztimingcrystal,resonatororRCcircuitmanyincludeanalog-to-digitalconverters.ThisintegrationdrasticallyreducesthenumberofchipsandtheamountofwiringandPCBspacethatwouldbeneededtoproduceequivalentsystemsusingseparatechipsandhaveprovedtobehighlypopularinembeddedsystemssincetheirintroductioninthe1970s.SomemicrocontrollerscanaffordtouseaHarvardarchitecture:separatememorybusesforinstructionsanddata,allowingaccessestotakeplaceconcurrently.Thedecisionofwhichperipheraltointegrateisoftendifficult.TheMicrocontrollervendorsoftentradeoperatingfrequenciesandsystemdesignflexibilityagainsttime-to-marketrequirementsfromtheircustomersandoveralllowersystemcost.Manufacturershavetobalancetheneedtominimizethechipsizeagainstadditionalfunctionality.Microcontrollerarchitecturesareavailablefrommanydifferentvendorsinsomanyvarietiesthateachinstructionsetarchitecturecouldrightlybelongtoacategoryoftheirown.Chiefamongthesearethe8051,Z80andARMderivatives.citationneededAmicrocontroller(alsoMCUorC)isafunctionalcomputersystem-on-a-chip.Itcontainsaprocessorcore,memory,andprogrammableinput/outputperipherals.MicrocontrollersincludeanintegratedCPU,memory(asmallamountofRAM,programmemory,第3页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.第4页Embeddedsystemsusuallyhavenokeyboard,screen,disks,printers,orotherrecognizableI/Odevicesofapersonalcomputer,andmaylackhumaninteractiondevicesofanykind.Itismandatorythatmicrocontrollersproviderealtimeresponsetoeventsintheembeddedsystemtheyarecontrolling.Whencertaineventsoccur,aninterruptsystemcansignaltheprocessortosuspendprocessingthecurrentinstructionsequenceandtobeginaninterruptserviceroutine(ISR).TheISRwillperformanyprocessingrequiredbasedonthesourceoftheinterruptbeforereturningtotheoriginalinstructionsequence.Possibleinterruptsourcesaredevicedependent,andoftenincludeeventssuchasaninternaltimeroverflow,completingananalogtodigitalconversion,alogiclevelchangeonaninputsuchasfromabuttonbeingpressed,anddatareceivedonacommunicationlink.Wherepowerconsumptionisimportantasinbatteryoperateddevices,interruptsmayalsowakeamicrocontrollerfromalowpowersleepstatewheretheprocessorishalteduntilrequiredtodosomethingbyaperipheralevent.Microcontrollerprogramsmustfitintheavailableon-chipprogrammemory,sinceitwouldbecostlytoprovideasystemwithexternal,expandable,memory.Compilersandassemblylanguageareusedtoturnhigh-levellanguageprogramsintoacompactmachinecodeforstorageinthemicrocontrollersmemory.Dependingonthedevice,theprogrammemorymaybepermanent,read-onlymemorythatcanonlybeprogrammedatthefactory,orprogrammemorymaybefield-alterableflashorerasableread-onlymemory.Sinceembeddedprocessorsareusuallyusedtocontroldevices,theysometimesneedtoacceptinputfromthedevicetheyarecontrolling.Thisisthepurposeoftheanalogtodigitalconverter.Sinceprocessorsarebuilttointerpretandprocessdigitaldata,i.e.1sand0s,theywontbeabletodoanythingwiththeanalogsignalsthat第5页maybebeingsenttoitbyadevice.Sotheanalogtodigitalconverterisusedtoconverttheincomingdataintoaformthattheprocessorcanrecognize.Thereisalsoadigitaltoanalogconverterthatallowstheprocessortosenddatatothedeviceitiscontrolling.Inadditiontotheconverters,manyembeddedmicroprocessorsincludeavarietyoftimersaswell.OneofthemostcommontypesoftimersistheProgrammableIntervalTimer,orPITforshort.APITjustcountsdownfromsomevaluetozero.Onceitreacheszero,itsendsaninterrupttotheprocessorindicatingthatithasfinishedcounting.Thisisusefulfordevicessuchasthermostats,whichperiodicallytestthetemperaturearoundthemtoseeiftheyneedtoturntheairconditioneron,theheateron,etc.TimeProcessingUnitorTPUforshort.Isessentiallyjustanothertimer,butmoresophisticated.Inadditiontocountingdown,theTPUcandetectinputevents,generateoutputevents,andotherusefuloperations.DedicatedPulseWidthModulation(PWM)blockmakesitpossiblefortheCPUtocontrolpowerconverters,resistiveloads,motors,etc.,withoutusinglotsofCPUresourcesintighttimerloops.UniversalAsynchronousReceiver/Transmitter(UART)blockmakesitpossibletoreceiveandtransmitdataoveraseriallinewithverylittleloadontheCPU.ForthosewantingethernetonecanuseanexternalchiplikeCrystalSemiconductorCS8900A,RealtekRTL8019,orMicrochipENC28J60.Allofthemalloweasyinterfacingwithlowpincount.SCMisalsoknownasmicro-controller(MicrocontrollerUnit),commonlyusedlettersoftheacronymMCUthatitwasfirstusedinindustrialcontrol.OnlyasinglechipbytheCPUchipdevelopedfromadedicatedprocessor.ThefirstdesignisbyalargenumberofperipheralsandCPUonachipinthecomputersystem,smaller,moreeasilyintegratedintoacomplexanddemandingonthevolumecontroldevicewhich.INTELsZ80isthefirstdesignedinaccordancewiththis第6页ideaprocessor,thenonthedevelopmentofmicrocontrolleranddedicatedprocessorshavepartedways.Are8-bitmicrocontrollerearlyor4bits.OneofthemostsuccessfulistheINTEL8031,forasimple,reliableandgoodperformancewasalotofpraise.Thendevelopedin8031outofMCS51MCUSystems.SCMsystemsbasedonthissystemuntilnowisstillwidelyused.Withtheincreasedrequirementsofindustrialcontrolfield,begana16-bitmicrocontroller,becausethecostisnotsatisfactorybuthavenotbeenverywidelyused.After90yearswiththegreatdevelopmentofconsumerelectronics,microcontrollertechnologyhasbeenahugeincrease.WithINTELi960series,especiallythelaterseriesofwidelyusedARM,32-bitmicrocontrollerquicklyreplacehigh-end16-bitMCUstatusandenterthemainstreammarket.Thetraditional8-bitmicrocontrollerperformancehavebeentherapidincreasecapacityincreasecomparedto80thenumberoftimes.Currently,high-end32-bitmicrocontrollerclockedover300MHz,theperformancecatchingthemid-90sdedicatedprocessor,whiletheaveragemodelpricesfalltooneU.S.dollars,themosthigh-end1modelonly10dollars.ModernSCMsystemsarenolongeronlyinthedevelopmentanduseofbaremetalenvironment,alargenumberofproprietaryembeddedoperatingsystemiswidelyusedinthefullrangeofSCM.Thehandheldcomputersandcellphonesasthecoreprocessingofhigh-endmicrocontrollercanevenuseadedicatedWindowsandLinuxoperatingsystems.SCMismoresuitablethanthespecificprocessorusedinembeddedsystems,soitwasuptotheapplication.InfactthenumberofSCMistheworldslargestcomputer.Modernhumanlifeusedinalmosteverypieceofelectronicandmechanicalproductswillbeintegratedsinglechip.Phone,telephone,calculator,homeappliances,electronictoys,handheldcomputersandcomputeraccessoriessuchasamousewitha1-2inboththeDepartmentofSCM.PersonalcomputerwillhavealargenumberofSCMinthe第7页work.Generalcarwithmorethan40SCM,complexindustrialcontrolsystemsmayevenhavehundredsofSCMinthesametimework!SCMisnotonlyfarexceedsthenumberofPCandothercomputingthesum,orevenmorethanthenumberofhumanbeingsSinglechip,alsoknownassingle-chipmicrocontroller,itisnotcompleteacertainlogicchips,buttoacomputersystemintegratedintoachip.Equivalenttoamicro-computer,andcomputerthanjustthelackofamicrocontrollerI/Odevices.Generaltalk:achipbecomesacomputer.Itssmallsize,lightweight,cheap,forthestudy,applicationanddevelopmentoffacilitiesprovided.Atthesametime,learningtousetheMCUistounderstandtheprincipleandstructureofthecomputerthebestchoice.SCMandthecomputerfunctionsinternallywithsimilarmodules,suchasCPU,memory,parallelbus,thesameeffectaswell,andharddiskmemorydevices,anddifferentisitsperformanceofthesecomponentswereelativelyweakmanyofourhomecomputer,butthepriceislow,usuallynotmorethan10yuanyoucandowithit.somecontrolforaclassisnotverycomplicatedelectricalworkisenoughof.Weareusingautomaticdrumwashingmachine,smokehood,VCDandsoonapplianceswhichcouldseeitsshadow!.ItisprimarilyasacontrolsectionofthecorecomponentsItisanonlinereal-timecontrolcomputer,control-lineisthatthesceneisneededisastrongeranti-jammingability,lowcost,andthisis,andoff-linecomputer(suchashomePC),themaindifference.第8页中文翻译稿单片机单片机即单片微型计算机,是把中央处理器、存储器、定时/计数器、输入输出接口都集成在一块集成电路芯片上的微型计算机。与应用在个人电脑中的通用型微处理器相比,它更强调自供应(不用外接硬件)和节约成本。它的最大优点是体积小,可放在仪表内部,但存储量小,输入输出接口简单,功能较低。由于其发展非常迅速,旧的单片机的定义已不能满足,所以在很多应用场合被称为范围更广的微控制器,但是目前在中国大陆仍多沿用“单片机”的称呼。绝大多数现在的单片机都是基于冯诺伊曼结构的,这种结构清楚地定义了嵌入式系统所必需的四个基本部分:一个中央处理器核心,程序存储器(只读存储器或者闪存)、数据存储器(随机存储器),一个或者更多的定时/计时器,还有用来与外围设备以及扩展资源进行通信的输入/输出端口所有这些都被集成在单个集成电路芯片上。说单片机与通用型中央处理单元芯片不同是因为前者一般很容易配合最小型的外部支持芯片制成工作计算机。这样就可以很容易的把单片机系统植入装置内部来控制装置了。近年来为了在指令和数据上使用不同的字宽,并提高处理器流水线速度,哈佛结构在微控制器和DSP也逐渐得到了广泛的应用。传统的微处理器是不允许这么做的。它要完成单片机的工作,就必须连接一些其他芯片。比如说,片上没有数据存储器,就必须要添加一些RAM的存储芯片,虽然所添加存储器的容量很灵活,但是至少还是要添加,另外还需要添加很多连线来传递芯片之间的数据。比如,一个典型的微控制器只需要一个时钟发生器和很少的RAM和ROM(或者EPROM,E2PROM)就可以在软件和晶振下工作了。同时,微控制器具有丰富的输入输出设备,像是模拟数字转换(ADC),定时器,串口或者其他串行通讯接口(比如第9页I2C,串行外围接口(SPI),控制器局域网)。通常,这些继承在内部的设备可以通过特殊的指令来操作。一些现代的微控制器支持一些内建的高级编程语言,比如BASIC语言。一个微控制器(也叫MCU)是一个微型计算芯片。它包含一个处理器、一个内存(有少量的RAM,程序存储器,或两者兼而有之)和一个可编程输入/输出外设。它强调高度集成,而相比之下,一个微处理器只包含一个CPU(比如一台PC)。除了通常的算术和逻辑要素等一般用途的微处理器,微控制器还集成了更多的要素,如读写存储器的数据存储,只读存储器的存储程序,快闪记忆体的永久数据存储,外设,和输入/输出接口。在时钟频率只有32Mhz的情况下,微操作系统往往以非常低的速度相运行,但是这足够典型的应用。他们消耗较少的功率(毫瓦或什微),且具有保持功能,同时可以等待一个事件,如一个按钮的按下或中断。在睡眠状态时,CPU时钟和外设禁用,从而使它们适合用于低功耗和长期持久的电池应用。微控制器广泛应用于自动控制产品和设备,如汽车发动机控制系统,远程控制系统,办公室机器设备系统,家用电器,电动工具,和玩具等。通过降低尺寸,成本和能耗,设计使用单独的微处理器,内存和输入/输出设备,能够使微控制器控制更多的进程,更经济。目前,大多数的计算机系统被嵌入在其他设备中使用,如汽车,电话以及很多需要外设的计算机系统。这些嵌入其他设备的计算机系统被称为嵌入式系统。有些嵌入式系统是非常复杂的,很多能够达到人们的要求,但由于内存和程序长度的限制,软件的复杂性降低。典型的输入和输出设备包括交换机,继电器,螺线管,发光二极管,小形或定制的液晶显示器,数码显示器等。射频设备和传感器等嵌入式系统通常没有键盘,屏幕,硬盘,打印机或其他公认的I/O设备,并可能缺乏人机互动装置的任何一种。某些强制性的微控制器能够提供实时应对突发事件的嵌入式系统并控制它们。当某些事件发生时,中断系统能够让信号处理第10页器暂停处理当前的指令序列,并开始了中断服务。当中断服务结束之后,再返回原来的指令序列,这就是我们通常所说的单片机的中断系统。中断源的设备依赖通常有很多种,如内部定时器溢、完成了模拟向数字转换、逻辑水平变化的一种投入、一个按钮被按下和收到了数据的通信联系等。凡是许多重要的中断源发出中断申请,都必须中断,如电池供电的设备停止运行后,微控制器在低功耗睡眠状态下的处理器必须停止,直到做一些外围的活动才重新开始返回当前指令序列。单片机程序必须符合现有的芯片程序存储器的要求,因为这将是代价高昂的系统提供了与外部设备之间可以扩展的存储器。编译器和汇编语言是用来打开高级语言程序到一个紧凑机器代码存储在微控制器的存储过程。根据不同的设备,程式记忆体可能是永久性的,而唯读存储器,只能进行编程。在工厂,可以生产可擦除式只读存储器。由于嵌入式处理器通常是用来控制设备的,他们有时需要接受输入设备的数据输入,但由于处理器内置处理数数据只有1和0,所以它们将无法直接处理任何模拟信号。因此,要先使需要处理的数据通过模拟向数字转换的过程,才能使传入的数据转化为处理器可以识别的形式。还有一种转换器叫做数模转换器,他能够使数字信号转换为模拟信号并将数据发送到需要CPU控制的设
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年新闻传播学研究生入学考试试卷及答案
- 2025年税务师考试试题及答案
- 2025年农业与农村发展政策考试试题及答案
- 2025年财务管理专项复习试卷及答案
- 2025年多媒体设计师职业资格考试试卷及答案
- 艾滋病护理常规
- 种子标签管理办法培训
- 女孩青春期性教育
- 中班健康活动:小小通气孔
- 循证护理查房过程
- 新质生产力促进辽宁经济高质量发展研究
- 《LNG基本知识培训》课件
- 《化工安全技术》教学设计(教学教案)
- 《OPPLE欧普照明》课件
- 医疗设备器材供货安装、调试及售后服务方案
- 砂石料加工场节能减排方案
- GB/T 24625-2024变频器供电同步电动机设计与应用指南
- 2024风电场工程项目建设工期定额
- 网络安全技能竞赛(CTF)考试题及答案
- 中外广告史(第三版) 课件全套 何玉杰 第0-11章 绪论、中国古代广告的发展- 日本广告的发展
- 广东省广州市天河区2024-2025学年四年级上学期第一次月考语文试卷
评论
0/150
提交评论