单片机外文文献.docx
《单片机外文文献.docx》由会员分享,可在线阅读,更多相关《单片机外文文献.docx(9页珍藏版)》请在冰豆网上搜索。
单片机外文文献
单片机外文文献
MicrocomputerSystems
Electronicsystemsareusedforhandinginformationinthemostgeneralsense;thisinformationmaybetelephoneconversation,instrumentreadoracompany?
saccounts,but
ineachcasethesamemaintypeofoperationareinvolved:
theprocessing,storageandtransmissionofinformation.inconventionalelectronicdesigntheseoperationsarecombinedatthefunctionlevel;forexampleacounter,whetherelectronicormechanical,storesthecurrentandincrementsitbyoneasrequired.Asystemsuchasanelectronicclockwhichemployscountershasitsstorageandprocessingcapabilitiesspreadthroughoutthesystembecauseeachcounterisabletostoreandprocessnumbers.
Presentdaymicroprocessorbasedsystemsdepartfromthisconventionalapproachbyseparatingthethreefunctionsofprocessing,storage,andtransmissionintodifferentsectionofthesystem.ThispartitioningintothreemainfunctionswasdevisedbyVonNeumannduringthe1940s,andwasnotconceivedespeciallyformicrocomputers.Almosteverycomputerevermadehasbeendesignedwiththisstructure,anddespitetheenormousrangeintheirphysicalforms,theyhaveallbeenofessentiallythesamebasicdesign.
Inamicroprocessorbasedsystemtheprocessingwillbeperformedinthemicroprocessoritself.Thestoragewillbebymeansofmemorycircuitsandthecommunicationofinformationintoandoutofthesystemwillbebymeansofspecialinput/output(I/O)circuits.Itwouldbeimpossibletoidentifyaparticularpieceofhardwarewhichperformedthecountinginamicroprocessorbasedclockbecausethetimewouldbestoredinthememoryandincrementedatregularintervalsbutthemicroprocessor.However,thesoftwarewhichdefinedthesystem?
sbehaviorwouldcontainsectionsthat
performedascounters.Theapparentlyratherabstractapproachtothearchitectureofthemicroprocessoranditsassociatedcircuitsallowsittobeveryflexibleinuse,sincethesystemisdefinedalmostentirelysoftware.Thedesignprocessislargelyoneofsoftwareengineering,andthesimilarproblemsofconstructionandmaintenancewhichoccurinconventionalengineeringareencounteredwhenproducingsoftware.
Thefigure1.1illustrateshowthesethreesectionswithinamicrocomputerareconnectedintermsofthecommunicationofinformationwithinthemachine.Thesystemiscontrolledbythemicroprocessorwhichsupervisesthetransferofinformationbetween
1
itselfandthememoryandinput/outputsections.Theexternalconnectionsrelatetotherest(thatis,thenon-computerpart)oftheengineeringsystem.
Fig.1.1ThreeSectionsofaTypicalMicrocomputer
Althoughonlyonestoragesectionhasbeenshowninthediagram,inpracticetwodistincttypesofmemoryRAMandROMareused.Ineachcase,theword„memory?
is
ratherinappropriatesinceacomputersmemoryismorelikeafilingcabinetinconcept;informationisstoredinasetofnumbered„boxes?
anditisreferencedbytheserialnumberofthe„box?
inquestion.
MicrocomputersuseRAM(RandomAccessMemory)intowhichdatacanbewrittenandfromwhichdatacanbereadagainwhenneeded.Thisdatacanbereadbackfromthememoryinanysequencedesired,andnotnecessarilythesameorderinwhichitwaswritten,hencetheexpression„random?
accessmemory.AnothertypeofROM(ReadOnly
Memory)isusedtoholdfixedpatternsofinformationwhichcannotbeaffectedbythemicroprocessor;thesepatternsarenotlostwhenpowerisremovedandarenormallyusedtoholdtheprogramwhichdefinesthebehaviorofamicroprocessorbasedsystem.ROMscanbereadlikeRAMs,butunlikeRAMstheycannotbeusedtostorevariableinformation.SomeROMshavetheirdatapatternsputinduringmanufacture,whileothersareprogrammablebytheuserbymeansofspecialequipmentandarecalledprogrammableROMs.ThewidelyusedprogrammableROMsareerasablebymeansofspecialultravioletlampsandarereferredtoasEPROMs,shortforErasableProgrammableReadOnlyMemories.Othernewtypesofdevicecanbeerasedelectricallywithouttheneedforultravioletlight,whicharecalledElectricallyErasableProgrammableReadOnlyMemories,EEPROMs.
Themicroprocessorprocessesdataunderthecontroloftheprogram,controllingtheflowofinformationtoandfrommemoryandinput/outputdevices.Someinput/outputdevicesaregeneral-purposetypeswhileothersaredesignedforcontrollingspecial
2
hardwaresuchasdiscdrivesorcontrollinginformationtransmissiontoothercomputers.MosttypesofI/Odevicesareprogrammabletosomeextent,allowingdifferentmodesofoperation,whilesomeactuallycontainspecial-purposemicroprocessorstopermitquitecomplexoperationstobecarriedoutwithoutdirectlyinvolvingthemainmicroprocessor.
Themicroprocessorprocessesdataunderthecontroloftheprogram,controllingtheflowofinformationtoandfrommemoryandinput/outputdevices.Someinput/outputdevicesaregeneral-purposetypeswhileothersaredesignedforcontrollingspecialhardwaresuchasdiscdrivesorcontrollinginformationtransmissiontoothercomputers.MosttypesofI/Odevicesareprogrammabletosomeextent,allowingdifferentmodesofoperation,whilesomeactuallycontainspecial-purposemicroprocessorstopermitquitecomplexoperationstobecarriedoutwithoutdirectlyinvolvingthemainmicroprocessor.
Themicroprocessor,memoryandinput/outputcircuitmayallbecontainedonthe
sameintegratedcircuitprovidedthattheapplicationdoesnotrequiretoomuchprogramordatastorage.Thisisusuallythecaseinlow-costapplicationsuchasthecontrollersusedinmicrowaveovensandautomaticwashingmachines.Theuseofsinglepackageallowsconsiderablecostsavingstoemadewhenarticlesaremanufacturedinlargequantities.Astechnologydevelops,moreandmorepowerfulprocessorsandlargerandlargeramountsofmemoryarebeingincorporatedintosinglechipmicrocomputerswithresultingsavinginassemblycostsinthefinalproducts.Fortheforeseeablefuture,however,itwillcontinuetobenecessarytointerconnectanumberofintegratedcircuitstomakeamicrocomputerwheneverlargeramountsofstorageorinput/outputarerequired.
Anothermajorengineeringapplicationofmicrocomputersisinprocesscontrol.Herethepresenceofthemicrocomputerisusuallymoreapparenttotheuserbecauseprovisionisnormallymadeforprogrammingthemicrocomputerfortheparticularapplication.Inprocesscontrolapplicationsthebenefitslffittingtheentiresystemontosinglechipareusuallyoutweighedbythehighdesigncostinvolved,becausethissortlfequipmentisproducedinsmallerquantities.Moreover,processcontrollersareusuallymorecomplicatedsothatitismoredifficulttomakethemassingleintegratedcircuits.Twoapproachesarepossible;thecontrollercanbeimplementedasageneral-purposemicrocomputerratherlikeamorerobustversionlfahobbycomputer,orasa„packaged?
system,signedfor
replacingcontrollersbasedonoldertechnologiessuchaselectromagneticrelays.Inthe
3
formercasethesystemwouldprobablybeprogrammedinconventionalprogramminglanguagessuchastheonesto9beintroducedlater,whileintheothercaseaspecial-purposelanguagemightbeused,forexampleonewhichallowedthefunctionofthecontrollertobedescribedintermsofrelayinterconnections,IneithercaseprogramscanbestoredinRAM,whichallowsthemtobealteredtosuitchangesinapplication,butthismakestheoverallsystemvulnerabletolosslfpowerunlessbatteriesareusedtoensurecontinuityofsupply.AlternativelyprogramscanbestoredinROM,inwhichcasetheyvirtuallybecomepartoftheelectronic„hardware?
andareoftenreferredtoasfirmware.Moresophisticatedprocesscontrollersrequireminicomputersfortheirimplementation,althoughtheuselflargescaleintegratedcircuits„thedistinctionbetweenminiandmicrocomputers,Productsandprocesscontrollersofvariouskindsrepresentthemajorityofpresent-daymicrocomputerapplications,theexactfiguresdependingonone?
s
interpretationoftheword„product?
.Virtuallyallengineeringandscientificusesofmicrocomputerscanbeassignedtooneorotherofthesecategories.ButinthesystemwemoststudyPressureandPressureTransmitters.Pressureariseswhenaforceisappliedoveranarea.ProvidedtheforceisoneNewtonanduniformlyovertheareaofonesquaremeters,thepressurehasbeendesignatedonePascal.Pressureisauniversalprocessingcondition.Itisalsoaconditionoflifeontheplanet:
weliveatthebottomofanatmosphericoceanthatextendsupwardformanymiles.Thismassofairhasweight,andthisweightpressingdownwardcausesatmosphericpressure.Water,afundamentalnecessityoflife,issuppliedtomostofusunderpressure.Inthetypicalprocessplant,pressureinfluencesboilingpointtemperatures,condensingpointtemperatures,processefficiency,costs,andotherimportantfactors.Themeasurementandcontrolofpressureorlackofit-vacuum-inthetypicalprocessplantiscritical.
Theworkinginstrumentsintheplantusuallyincludesimplepressuregauges,precisionrecordersandindicators,andpneumaticandelectronicpressuretransmitters.Apressuretransmittermakesapressuremeasurementandgenerateseitherapneumaticorelectricalsignaloutputthatisproportionaltothepressurebeingsensed.
Intheprocessplant,itisimpracticaltolocatethecontrolinstrumentsoutintheplaceneartheprocess.Itisalsotruethatmostmeasurementsarenoteasilytransmittedfromsomeremotelocation.Pressuremeasurementisanexception,butifahighpressureof
4
somedangerouschemicalistobeindicatedorrecordedsevera