




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
UNIT13EmbeddedSystem
13-1TechnicalPart13-2ReadingMaterial
13-1TechnicalPart
13-1-1Definition
Anembeddedsystemisacomputersystemdesignedforspecificcontrolfunctionswithinalargersystem,oftenwithreal-timecomputingconstraints(SeeFigure13-1).Itisembeddedaspartofacompletedeviceoftenincludinghardwareandmechanicalparts.Bycontrast,ageneral-purposecomputer,suchasapersonalcomputer(PC),isdesignedtobeflexibleandtomeetawiderangeofend-userneeds.Embeddedsystemscontrolmanydevicesincommonusetoday.13-1-2Introductions
ComponentsofanEmbeddedSystem
Anembeddedsystemisonethathascomputer-hardwarewithsoftwareembeddedinitasoneofitsmostimportantcomponent.Itisadedicatedcomputer-basedsystemforanapplication(s)orproduct.Itmaybeeitheranindependentsystemorapartofalargersystem.AsitssoftwareusuallyembedsinROM(ReadOnlyMemory)itdoesnotneedsecondarymemoriesasinacomputer.Anembeddedsystemhasthreemaincomponents:Figure13-1PictureoftheinternalsofanADSLmodem/router.Amodernexampleofanembeddedsystem.Labelledpartsincludeamicroprocessor(4),RAM(6),andflashmemory(7).
1.Ithashardware.Figure13-2showstheunitsinthehardwareofanembeddedsystem.Figure13-2theComponentsofanEmbeddedSystemHardware
2.Ithasmainapplicationsoftware.Theapplicationsoftwaremayperformconcurrentlytheseriesoftasksormultipletasks.
3.IthasaRealTimeOperatingSystem(RTOS)thatsupervisestheapplicationsoftwareandprovidesamechanismtolettheprocessorrunaprocessasperschedulinganddothecontext-switchbetweenthevariousprocesses(tasks).
RTOSdefinesthewaythesystemworks.Itorganizesaccesstoaresourceinsequenceoftheseriesoftasksofthesystem.Itschedulestheirworkingandexecutionbyfollowingaplantocontrolthelatenciesandtomeetthedeadlines.Latencyreferstothewaitingperiodbetweenrunningthecodesofataskandtheinstanceatwhichtheneedforthetaskarises.Itsetstherulesduringtheexecutionoftheapplicationsoftware.Asmall-scaleembeddedsystemmaynotneedanRTOS.
Anembeddedsystemhassoftwaredesignedtokeepinviewthreeconstraints:(i)availablesystemmemory,(ii)availableprocessorspeedand(iii)theneedtolimitpowerdissipationwhenrunningthesystemcontinuouslyincyclesofwaitforevents,run,stopandwake-up.CharacteristicsofEmbeddedSystem
1.Embeddedsystemsaredesignedtodosomespecifictask,ratherthanbeageneral-purposecomputerformultipletasks.Somealsohavereal-timeperformanceconstraintsthatmustbemet,forreasonssuchassafetyandusability,othersmayhavelowornoperformancerequirements,allowingthesystemhardwaretobesimplifiedtoreducecosts.2.Embeddedsystemsarenotalwaysstandalonedevices.Manyembeddedsystemsconsistofsmall,computerizedpartswithinalargerdevicethatservesamoregeneralpurpose.Forexample,theGibsonRobotGuitarfeaturesanembeddedsystemfortuningthestrings,buttheoverallpurposeoftheRobotGuitaris,ofcourse,toplaymusic.Similarly,anembeddedsysteminanautomobileprovidesaspecificfunctionasasubsystemofthecaritself.3.Theprograminstructionswrittenforembeddedsystemsarereferredtoasfirmware,andarestoredinread-onlymemoryorFlashmemorychips.Theyrunwithlimitedcomputerhardwareresources:littlememory,smallornon-existentkeyboardorscreen.ClassificationofEmbeddedSystems
Wecanclassifyembeddedsystemsintothreetypesasfollows:
1.SmallScaleEmbeddedSystems:Thesesystemsaredesignedwithasingle8-or16-bitmicrocontroller,theyhavelittlehardwareandsoftwarecomplexitiesandinvolveboard-leveldesign.Theymayevenbebatteryoperated.Whendevelopingembeddedsoftwareforthese,aneditor,assemblerandcrossassembler,specifictothemicrocontrollerorprocessorused,arethemainprogrammingtools.
Usually,‘C’isusedfordevelopingthesesystems.‘C’programcompilationisdoneintotheassembly,andexecutablecodesarethenappropriatelylocatedinthesystemmemory.Thesoftwarehastofitwithinthememoryavailableandkeepinviewtheneedtolimitpowerdissipationwhensystemisrunningcontinuously.
2.MediumScaleEmbeddedSystems:Thesesystemsareusuallydesignedwithasingleorfew16-or32-bitmicrocontrollersorDSPsorReducedInstructionSetComputers(RISCs).Thesehavebothhardwareandsoftwarecomplexities.Forcomplexsoftwaredesign,therearethefollowingprogrammingtools:RTOS,Sourcecodeengineeringtool,Simulator,DebuggerandIntegratedDevelopmentEnvironment(IDE).
Softwaretoolsalsoprovidethesolutionstothehardwarecomplexities.Anassemblerisoflittleuseasaprogrammingtool.ThesesystemsmayalsoemploythereadilyavailableASSPsandIPsforthevariousfunctions—forexample,forthebusinterfacing,encrypting,deciphering,discretecosinetransformationandinversetransformation,TCP/IPprotocolstackingandnetworkconnectingfunctions.ASSPsandIPsmayalsohavetobeappropriatelyconFiguredbythesystemsoftwarebeforebeingintegratedintothesystem-bus.
3.SophisticatedEmbeddedSystems:Sophisticatedembeddedsystemshaveenormoushardwareandsoftwarecomplexitiesandmayneedscalableprocessorsorconfigureurableprocessorsandprogrammablelogicarrays.Theyareusedforcuttingedgeapplicationsthatneedhardwareandsoftwareco-designandintegrationinthefinalsystem,however,theyareconstrainedbytheprocessingspeedsavailableintheirhardwareunits.
Certainsoftwarefunctionssuchasencryptionanddecipheringalgorithms,discretecosinetransformationandinversetransformationalgorithms,TCP/IPprotocolstackingandnetworkdriverfunctionsareimplementedinthehardwaretoobtainadditionalspeedsbysavingtime.Someofthefunctionsofthehardwareresourcesinthesystemarealsoimplementedbythesoftware.Developmenttoolsforthesesystemsmaynotbereadilyavailableatareasonablecostormaynotbeavailableatall.Insomecases,acompilerorretargetablecompilermighthavetobedevelopedforthese.AretargetablecompilerisonethatconFiguresaccordingtothegiventargetconFigureurationinasystem.EmbeddedOperatingSystem
Anembeddedoperatingsystem(EOS)isasystemsoftwarethatmanagesalltheotherprogramsanddevicesinanembeddedsystem.Itnormallyguaranteesacertaincapabilitywithinaspecifiedstoragesizeandtimeconstraintaswellaswithapplicationprograms.Itsstructureisverysimilartoastructureofanormaloperatingsystemhowevermainlydifferentiatedbysomefactorssuchastypeofpreinstalleddevice,functionallimits,takingdesignedjobonly.
Italsonormallyhasbootloader,OSkernel,requireddevicedrivers,filesystemsfortheuserdataandsoforth.Attheircore,embeddedoperatingsystemscontainsomeofthesamesoftwarecomponentsusedonlargeroperatingsystems,suchaswindowsandLinuxetc.largeroperatingsystems(OS),embeddedoperatingsystemsdealswithtaskswitching,schedulingoftasks,memoryallocation,etc.
ButtherearesomedistinctionsbetweendesktopcomputerOSandembeddedsystemOS.DesktopComputerisageneralpurposecomputingsystemwhereasembeddedsystempurposeisforaspecifictask.Embeddedoperatingsystemshaveseveralcommoncharacteristicsthatdistinguishsuchsystemsfromothercomputingsystems:
SingleFunctioned:Usuallyexecutesaspecificprogramrepeatedlye.g.pager.
TightlyConstrained:Allcomputingsystemshaveconstraintsondesignmetrics,butthoseonembeddedsystemscanbeespeciallytight.Adesignmetricisameasureofanimplementation’sfeatures,suchascost,size,performanceandpower.
ReactiveandRealTime:Manyembeddedsystemsmustcontinuallyreacttochangesinthesystem’senvironmentandmustcomputecertainresultsinrealtimewithoutdelay.Incontrast,adesktopsystemtypicallyfocusesoncomputationwithrelativelyinfrequentreactionstoinputdevices.
SecondaryMemory:Generallyembeddedsystemdoesn’tneedsecondarymemory.
Unlikeadesktopcomputersystemwhichmayhavenewsoftwareloadedontoitfrequently,embeddedsystemsretainthesamecodeforalongtime,sometimesindefinitely.Embeddedoperatingsystemsdonotusuallyincludesupportforexternalstorageorgraphicalinterfaces,orprotectionfrommaliciousorunstablecode.Thelimitedmemoryinembeddedsystemsrequirestheoperatingsystemandprocesstoworkverycloselytomanagethefreeresources.13-1-3ApplicationCaseorExample
WashingMachine
Washingmachinesupportsthreefunctionalmodes:
1.FullyAutomaticMode:Infullyautomaticmode,oncethesystemisstarteditperformindependentlywithoutuserinterferenceandafterthecompletionofworkitshouldnotifytheuseraboutthecompletionofwork.Thismodeinstantaneouslysenseclothqualityandrequirementofwater,watertemperature,detergent,load,washcycletimeandperformoperationaccordingly.
2.SemiAutomaticMode:Inthissemiautomaticmodeinwhichwashingconditionsarepredefined.Oncethepredefinedmodeisstartedthesystemperformitsjobandaftercompletionitinformtheuseraboutthecompletionofwork.
3.ManualMode:Inthismode,userhastospecifywhichoperationhewantstodoandhastoproviderelatedinformationtothecontrolsystem.Forexample,ifuserwantstowashclothesonly,hehastochoose‘wash’optionmanually.Thenthesystemasktheusertoenterthewashtime,amountofwaterandtheload.Afterthesedataareentered,theusershouldstartthemachine.Whenthespecifiedoperationiscompletedsystemshouldinformtheuser.
RememberthatModesshouldbeaselectablebyakeypad.
AwashingmachinemayhaveaSystemController(BrainoftheSystem)whichprovidesthepowercontrolforvariousmonitorsandpumpsandevencontrolsthedisplaythattellsushowthewashcyclesareproceeding.AwashingmachinecomprisesseveralcomponentsasshowninFigure13-3.Figure13-3thecomponentsofwashingmachine
Theworkingofthesecomponentsisasfollows:
1.?DisplayPanel:Itisatouchpanelscreentocontrolalltheoperationsofamachine
2.Sensor:Itmeasuresthewaterlevelandappropriateamountofsoap.Inputdevicesforautomaticwashingmachinearesensorsforwaterflow,waterlevelandtemperature,doorswitch,selectorknoborbuttonsforsettingssuchasspinspeed,temperature,loadsizeandtypesofwashcyclerequired.
WaterLevelSensor:Itindicatesbeepsoundwhenwaterlevelislowinwashingtub.
DoorSensor:Itindicatesbeepsoundwhenallclothesarewashedthatmeansnowyoucanopenthemachingdoorandalsoyoucanmovetoyournextphase.NextphasewillbedryPhase.Thisphasealsofollowssameconceptfordryingtheclothes.
3.DrivingMotor:Motorcanrotateintwodirectionseither“reverse’or‘forward’.Theforwarddirectiondrivesthecurrentinforwarddirectionandmotorrotatesforward.Thereversedirectiondriverdoestheoppositeofit.Awashingmachinecanmaintainsinglemotorinfullyautomaticordoublemotorinsemiautomaticwashingmachine.
Sequenceofwashingtheclotheswiththiscanbeexplainedinfewstepsasfollows:
1)Putonyourdirtyclothesontothewashtubforwashing.
2)PutthedetergentSoap(ofyourchoicelikeSurfnExceletc.).
3)PutONthetap,waterrushesinsidethetub.
4)Ifitselectroniccontrol,thenbythepressofthekeys,youcouldprogram,ifitsmechanicalitshallsomethinglikeanmechanicalswitcheswhereinyouareallowedtooperateforsettingthewashtime.
5)Nowthewashmotorrotatesandwashestheclothesandgivesyouabeepsound
6)Nowyourclothesarewashed…removeitfromthewashtubandputitonthespintubandprogramitaccordingly…afterspinningclothesaredriedandyouareallowedtohangitforproperdryinginsunlight.
Thefullyautomaticalsocomesintwocategoryfrontloadingaswellastoploading.
1)Frontloadingistheonewhereinyouaregivenanopeningtoputclothesinonthefrontside.
2)Toploadingisonthetop.
4.SystemController:SuchComponentisusedtocontrolthemotorspeed.Motorcanmoveinforwarddirectionaswellasreversedirection.SystemControllerreadsthespeedofmotorandcontrolsthespeedofmotorindifferentphasessuchasinwashing,cleaning,dryingetc.AllkindsofSensorssuchasDoorSensor,PressureSensorandKeypad,Speedsensorarealsomaintainedbythis.
5.WaterPump:Thewaterpumpisusedtorecirculatewateranddrainoutthedirtywater.Thispumpactuallycontainstwoseparatepumpsinsideone:Thebottomhalfofthepumpishookeduptothedrainline,whilethetophalfrecirculatesthewashwater.Themotorthatdrivesthepumpcanreversedirection.Itspinsonewaywhenthewasherisrunningawashcycleandrecirculatesthewater,anditspinstheotherwaywhenthewasherisdoingaspincycleanddrainingthewater.
13-2ReadingMaterial
13-2-1Readingcomprehension
TrendofTinyEmbeddedSystems
Significantadvancesinmicroelectronicstechnologymadetheincreasingminiaturizationofembeddedsystemspossible.Thistrendtominiaturizationbeganinthelate1960sand,asstatedbyMoore’sLawthatthepowerofmicroprocessorsdoublesaboutevery18months,hasheldtruewithastonishingaccuracyandconsistencyuntilthebeginningofthe21stcentury.
AnannouncementlikethatbyIBMconcerningtheuseof29.9nmtechnologytoprintcircuitsindicatesthatthistrendwillcontinueforanumberofchipgenerations.
Thetrendisleadingtoandwillresultinthedevelopmentoftinyembeddedsystems,integratedintomoreandmoreeverydayobjects.Andwillcreateaworldofsmartdevicessurroundingus.Forexample,parentswillnolongerlosetrackoftheirchildren,eveninthebusiestcrowds,whenlocationsensorsandcommunicationmodulesaresewnintotheirclothes.Similardevicesattachedtotimetablesandsignpostscouldguideblindorforeignpeopleinunknownenvironmentsbytalkingtothem.
Anotherinterestingpossibilityofferedbysuchtechnologywouldbethecreationofintelligenthomeswherearefrigeratorcandetectoldfood,awashingmachinecanquerytheinstructionsfordirtyclothes,orwindowanddoorhandlesindicatewhethertheyareopenorclosed.Thisconceptcalledambientintelligence,wherehumanshavecomputingandnetworkingtechnologyembeddedintheirsurroundings,wasdevelopedbytheISTAGadvisorygroup.
Whilethisvisionmaysoundutopianwhenyoufirsthearaboutit,currenttechnologyisalreadyatastagewhereitispossibletorealizeit.Ambientintelligencerequiresthattherebethousandsoftinyembeddeddevicesintheenvironment.Eachofthesedevicesrequiresomesourceofpowerforittofunction.Whilepowercanbesenttothemthroughcablesorbatteries,neitherofthesepossibilitiesoffersaneffectiveandlongtermsolution.Thelargenumberofthesedevicesmakesithighlydesirablethattheybefullyself-sustainingandservice-free.Thiscanbeachievedbyharvestingenergyfromtheenvironment.
Energyharvestingisawayofusingtheomnipresentsourcesofenergyinoursurroundings,likefrommovingobjects,vibratingmachineparts,temperaturechanges,electromagneticwavessuchaslight,radioorinfrared.Theideaisnotnew,butsuccessfulandlow-costrealizationinembeddedsystemscallsfortherightexpertise.Aspecificdesignapproachisneededforembeddedsystemsfulfillingtheconceptofambientintelligence.
Words&Expressions
miniaturizationn.小型化,微型化
microprocessorn.微處理器
printcircuit印刷電路
integratevi.融入
surroundingn.環(huán)境
locationsensor定位節(jié)點
communicationmodule通信模塊
environmentn.環(huán)境,外界sewv.縫紉
intelligenthome智能家居
queryvt.詢問
instructionn.指令
ambientintelligence環(huán)境智能
advisoryadj.咨詢的,顧問的
utopianadj.理想化的
self-sustainingadj.自持的
service-freeadj.免維護的omnipresentadj.無所不在的
vibratingadj.震動的
electromagneticwave電磁波
infraredn.紅外線
expertisen.專門知識
designapproach設計方法,設計方式13-2-2Exercises
I.Fillineachoftheblankswithoneofthewordsgiveninthefollowinglist,makingchangesifnecessary.
Manages,operatingsystem,embedded,allocation,constraint,kernel,preinstalled,software,storage,similar
Anembeddedoperatingsystem(EOS)issystemsoftwarethat
alltheotherprogramsanddevicesinan
system.Itnormallyguaranteesacertaincapabilitywithinaspecified
sizeandtime
aswellaswithapplicationprograms.Itsstructureisvery
toastructureofanormaloperatingsystemhowevermainlydifferentiatedbysomefactorssuchastypeof
device,functionallimits,takingdesignedjobonly.
Italsonormallyhasbootloader,OS
,requireddevicedrivers,
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025-2030工程塑料行業(yè)市場深度分析及發(fā)展策略研究報告
- 臨床生命體征測量技術要點
- 宿遷澤達職業(yè)技術學院《建筑環(huán)境學B》2023-2024學年第二學期期末試卷
- 2025-2030年中國ppr管材行運行狀況及發(fā)展趨勢預測報告
- 2025-2030年中國orc發(fā)電行業(yè)運行趨勢及投資競爭力發(fā)展研究報告
- 2025-2030年中國IT運維管理產業(yè)市場投資風險預測深度研究報告
- 三班團會弘揚愛國主義精神
- 學習法律心得體會
- 2025-2030年中國DSP芯片市場發(fā)展趨勢及未來競爭戰(zhàn)略研究報告
- 新技術對傳統生產方式的影響計劃
- 上海上海閔行職業(yè)技術學院招聘60人筆試歷年參考題庫附帶答案詳解
- 【教學評一體化】第五單元 觀世間萬物悟人生哲思【大單元公開課一等獎創(chuàng)新教學設計】新統編版語文七年級下冊名師備課
- 廣西中藥深加工項目投資計劃書
- 私家偵探合同協議
- 居間保密合同協議
- 飼料企業(yè)職業(yè)健康培訓大綱
- 2025年六五環(huán)境日生態(tài)環(huán)保常識及法律知識有獎競答題庫及答案(共90題)
- 磁場對通電導線的作用力課件-高二下學期物理人教版選擇性2
- 2025-2030中國電氣火災監(jiān)控模塊競爭戰(zhàn)略規(guī)劃與需求預測分析研究報告
- 第18課《井岡翠竹》課件-2024-2025學年統編版語文七年級下冊
- 公立醫(yī)院成本核算指導手冊
評論
0/150
提交評論