关闭

关闭

关闭

封号提示

内容

首页 stc89c52单片机介绍(Introduction of STC89C52 SCM).doc

stc89c52单片机介绍(Introduction of STC89C52 SCM).doc

stc89c52单片机介绍(Introduction of S…

上传者: 叶豫行 2017-10-21 评分 0 0 0 0 0 0 暂无简介 简介 举报

简介:本文档为《stc89c52单片机介绍(Introduction of STC89C52 SCM)doc》,可适用于社会民生领域,主题内容包含stcc单片机介绍(IntroductionofSTCCSCM)stcc单片机介绍(IntroductionofSTCCSCM)==========符等。

stcc单片机介绍(IntroductionofSTCCSCM)stcc单片机介绍(IntroductionofSTCCSCM)========================================pagefirst========================================STCCSCMintroduction:AsinglechipcomputerisacompletecomputersystemthatisintegratedintoasinglechipDespitemostofhisfeaturesIntegratedonasmallchip,butithasmostofthecomponentsneededforafullcomputer:CPU,Memory,internalandexternalbussystem,mostwillhavethecoreAtthesametime,suchascommunicationinterfaces,Timer,realtimeclockandotherperipheralequipmentAndnowthemostpowerfulsinglechipmicrocomputersystemcanevensound,mapImages,networks,andcomplexinputandoutputsystemsareintegratedintoasinglechipMicrocontrollersarealsoknownasmicrocontrollersMicrocontroler)becauseitwasfirstusedinindustrialcontrolRealmSCMbychiponlyCPUSpecialprocessorshaveevolvedTheearliestdesignconceptwasthroughPassalotofperipheralsandCPUIntegratedintoasinglechiptomakethecomputersystemsmallerandeasiertointegrateIntocomplexanddemandingcontrolequipmentINTELTheZItwastheearliestthoughtTheprocessorthatyouwanttodesign,andthen,thedevelopmentofthemicrocontrollerandthespecialprocessorwillgotheirseparatewaysEarlySCMisEightOrFourBitOneofthemostsuccessfulisINTELTheEightthousandandthirtyoneBecauseJaneIt'sreliableandhasgoodperformanceIthasreceivedagreatdealofpraiseThereafterEightthousandandthirtyoneDevelopedontheMCSSeriallistSheetmachinesystemThesinglechipmicrocomputersystembasedonthissystemisstillwidelyuseduntilnowWiththeindustrialcontrolcollarTheincreaseindomainrequirementsbegantoappearSixteenBitmicrocontroller,butbecausethecostperformanceisnotideal,hasnotbeenwidelyApplicationsNinetyAfterthes,withthedevelopmentofconsumerelectronicproducts,SCMtechnologyhasbeengreatlyimprovedalongwithINTELiAseries,especiallylaterARMAwiderangeofapplications,ThirtytwoBitmicrocontrollergenerationSixteenBitmicrocontrollerhighendstatus,andintothemainstreammarketTraditionalEightBitMCUperformanceisalsoHasbeenimprovedrapidly,comparedwiththeprocessingcapacityEightyIthasincreasedseveralhundredtimesinthesAtpresent,highendThirtytwoBitmonolithicThemainfrequencyofthemachinehasexceededMHzTheperformancecatchingNinetyAdedicatedprocessorinthemids,andaplainmodelThefactorypricefallstoOneDollars,themosthighendmodelsareonlyTenDollarContemporarySCMsystemhasnotThenonlythebaremetalenvironmentinthedevelopmentanduseofspecialembeddedoperatingsystemiswidelyusedinthefullrangeScmInthepalmcomputerandmobilephonecoreprocessinghighendmicrocontrollercanevenbeuseddirectlyAppropriativeWindowsandLinuxOperatingsystemSCMismoresuitableforembeddedsystemsthandedicatedprocessors,soithasthemostapplicationsInfact,SCMisthelargestnumberofcomputersintheworldAlmosteverypieceofelectronicsusedinmodernhumanlifeAndmechanicalproductswillbeintegratedwithsinglechipmicrocomputerMobilephones,telephones,calculators,homeappliances,electronictoys,HandheldcomputersandcomputeraccessoriessuchasthemouseareavailableMcuAndthereareafewinthepersonalcomputerManySCMworkThecarisusuallyequippedFortyMultiplesinglechipmicrocomputer,complexindustrialcontrolsystem========================================pagesecond========================================Theremayevenbehundredsofmicrocontrollersworkingatthesametime!ThenumberofSCMisnotonlyfarexceededPCMachinesandothermetersThecalculationsareevenmorenumerousthanthenumberofhumanbeingsSinglechipmicrocomputerisalsocalledasinglechipmicrocontroller,Itisnotachipthatperformssomelogicalfunction,It'saplanThecomputersystemisintegratedintoasinglechipTosumup:achipbecomesacomputerItsvolumeSmall,lightquality,cheapprice,forlearning,applicationanddevelopmentprovidesconvenientconditionsAtthesametime,learntouseSCMisthebestchoicetounderstandtheprinciplesandstructureofthecomputerSCMinternalandcomputerfunctionssimilarmodules,suchasCPUMemory,parallelbus,etcAmemorydevicethathasthesamefunctionasaharddisk,anddiffersfromeachotherintermsofitsperformancerelativetoourhomeappliancesThebrainisweak,butthepriceislow,usuallynotmorethanTenYuancanUseittomakesomecontrolappliancesAclassofworkthatisnotverycomplicatedisenoughWenowusetheautomaticdrumwashingmachine,smokehood,VCDAndsooninsidetheappliance,youcanseeitsshadow!ItismainlyusedasthecorepartofthecontrolpartItisanonlinerealtimecontrolcomputer,onlineisfieldcontrol,needisstrongerAntiinterferenceability,lowcost,andthisisalsowithofflinecomputers(suchashome)PCMainareaDon'tSCMisdependentonprocedures,andcanbemodifiedRealizedifferentfunctionsthroughdifferentprograms,especiallyIt'saspecial,uniquefeature,somethingelsethatneedsalotofefforttodo,andsomeofthemIt'shardtodoitwithgreateffortAnotverycomplexfunction,ifusedintheUnitedStatesFiftyDevelopedinthesSeventyfourSeries,orSixtyAgeCDTheseriesofpurehardwaretofix,thecircuitmustbeabigPCBBoard!ButifyouusetheUnitedStatesSeventyThesuccessoftheseriesofsinglechipmicrocomputerinthemarket,theresultswillbeAworldofdifference~Justbecauseofthesinglechipmicrocomputer,youcanachievehighintelligence,highefficiencyandhighefficiencythroughtheprogramyouwriteReliability!BecauseSCMissensitivetocost,sothecurrentdominantsoftwareisthelowestlevelassemblylanguageLanguage,itisinadditiontothebinarymachinecodeabovethelowestlevellanguage,sinceitissolowlevel,whyuseManyadvancedlanguageshavereachedthelevelofvisualprogramming,whynotThereasonissimple,SCMisnotthesameasthehomecomputerCPUAndthereisnomassstoragedevicelikeharddisksAvisualhighlevellanguageapplet,whichevenifonlyabutton,itwillreachdozensKTheDimension!ForhomeusePCTheharddiskisnothing,butforthemicrocontrollerisnotacceptablesingleUsingthemachineintermsofhardwareresourcestobeveryhighfortherate,thereforeassemblyalthoughprimitiveactuallymakealotUseThesamereason,ifthegiantcomputeroperatingsystemsandapplicationstothehomePCcomeupRun,homePCYoucan'tstanditItcanbesaidthatintwentiethCentury,the"threeelectric"times,namelytheelectricalage,theelectronicage,andnowAccesstothecomputerageHowever,thiskindofcomputerusuallyreferstopersonalcomputersPCMachineItcomesfromtheLordMachine,keyboard,displayandsoonThere'sanothertypeofcomputerthatmostpeopledon'tknowverywellThiscalculationAmachineisasinglechipmicrocomputer(alsocalledamicrocontroller)thatgivesintelligencetoawiderangeofmachinesAsthenamesuggests,thiskindofcomputer========================================pagethird========================================TheminimalsystemcanbeeasilyoperatedandcontrolledwithonlyoneintegratedcircuitBecauseit'ssmallenoughtopassthroughOftenhiddeninthestomachofachargedmachineItplaystheroleofthehumanmindinthewholedevice,SomethingwentwrongandthewholedevicewasparalyzedNow,theuseofthismicrocontrollerhasbeenveryextensive,suchasIntelligentinstrument,realtimeindustrialcontrol,communicationequipment,navigationsystem,homeappliance,etcAvarietyofproductsonceusedSCMcanplaytheroleofupgradingtheproduct,oftenprecededbytheproductnameasanadjective"wisdom"Canbetype,suchasintelligentwashingmachines,etcNowsomefactorytechniciansorotheramateurelectronicdevelopersdoitSomeproductsoutofthecircuitisnottoocomplicated,thatis,thefunctionistoosimpleandveryeasytobecopiedInvestigateitsreason,Maybestuckontheproduct,notusingamicrocontrollerorotherprogrammablelogicdeviceSTCCIt'sakindofbandKByteblinkingprogrammableerasablereadonlymemory(FPEROMFlash,Programable,and,Erasable,Read,Only,Memory)Lowvoltage,highperformanceCOMOSMicroprocessor,commonlyknownassinglechipmicrocomputerThedeviceisadoptedATMELEngageinsecretManufacturing,manufacturing,andindustrialstandardsofnonvolatilememoryMCSInstructionsetandoutputpinphaseVolumeSCMtotalcontrolcircuitasfollowsFourOne:========================================pagefourth========================================chartTutuchartFourOneSCMtotalcontrolcircuitSCMtotalcontrolcircuitSCMtotalcontrolcircuitSCMtotalcontrolcircuitOneClockcircuitSTCCInternally,ahighgaininvertingamplifierisusedtoformtheoscillatorpinRXDandTXDInputandoutputoftheamplifierrespectivelyClockscanbeproducedinternallyorexternallyTypeproductionTheinternalmodeoftheclockcircuitisshowninFigFour(a)AsshowninRXDandTXDTheexternalpinTimingelement,theinternaloscillatorgeneratesselfexcitedoscillationThetimingelementisusuallymadeofquartzcrystalsandcapacitorsParallelresonantcircuitCrystaloscillationfrequencycanbefoundinOnepointtwo~MHzBetween,thecapacitorvalueinFive~pFBetweenthecapacitors,thesizeofthecapacitorcanplayaroleintrimmingthefrequencyTheexternalmodeoftheclockcircuitisshowninFigFourTwo(BAsshown,RXDEarthing,TXDExternaloscillatorTheexternaloscillationsignalhasnospecialrequirementOnlythepulsewidthisguaranteed,andthefrequencyislowerthanthatoftheexternaloscillationsignalMHzSquarewavesignalTheonchipclockgeneratordividestheoscillationfrequencytwotoproduceatwophaseclockPandP,ForSCMuseShow,RXDEarthing,TXDExternaloscillatorExternaloscillationsignalhasnospecialrequirement,onlyrequestGuaranteedpulsewidthisgenerallybelowthefrequencyMHzSquarewavesignalTheonchipclockgeneratoroscillatesFrequencytwodividergeneratesatwophaseclockPandPForSCMuseRXDEarthing,TXDExternaloscillatorThereisnospecialrequirementforexternaloscillationsignal,onlyguaranteePulsewidthisgenerallylowerthanfrequencyMHzSquarewavesignalTheinternalclockgeneratoroscillatestheoscillatorfrequencyTwofrequencydividergeneratesatwophaseclockPandPForSCMuse((((A)))InternalmodeclockcircuitInternalmodeclockcircuitInternalmodeclockcircuitInternalmodeclockcircuit((((B)))ExternalmodeclockcircuitExternalmodeclockcircuitExternalmodeclockcircuitExternalmodeclockcircuitchartTutuchartFourTwoClockcircuitClockcircuitClockcircuitClockcircuitTwoResetandresetcircuit(OneResetoperation========================================pagefifth========================================ResetistheinitializationoperationofsinglechipmicrocomputerItsmainfunctionistobringPCInitializetoHMakesingleChipmachineHTheunitstartsexecutingtheprogramInadditiontothenormalinitializationofthesystem,duetoInordertogetoutofthedifficulty,thesystemneedstopresstheresetbuttonagainwhenthesystemisinadeadlockstateStartupexceptPCOutsideTheresetoperationalsoaffectssomeotherregisters,andtheirresetstatusisshowninTableAsshownsurfaceTableTableonebyoneOneTheresetstatusofsomeregistersTheresetstatusofsomeregistersTheresetstatusofsomeregistersTheresetstatusofsomeregistersregisterResetstateregisterResetstatePCHTCONHACCHTLHPSWHTHHSPHTLHDPTRHTHHPPFFHSCONHIPXXBSBUFIndefiniteIEXBPCONXXXBTMODH(TwoResetsignalanditsgenerationRSTThepinistheinputterminaloftheresetsignalTheresetsignalisactivehigh,andtheactivetimeshouldbemaintainedContinuedTwentyfourOscillatingperiod(Thatis,twomachinecycles)Above。IftheuserateisMHzThecrystaloscillatorisresetSignaldurationshallexceedusTocompletetheresetoperationThelogicofthecircuitthatproducestheresetsignalisshowninFigFourThreeAsshown:========================================pagesixth========================================chartTutuchartFourThreeCircuitlogicdiagramofresetsignalCircuitlogicdiagramofresetsignalCircuitlogicdiagramofresetsignalCircuitlogicdiagramofresetsignalThewholeresetcircuitincludestwopartsinsideandoutsidethechipAresetsignalproducedbyanexternalcircuit(RST)SendtoTheSchmidtflipflopisthenreplacedbyanonchipresetcircuitineachmachinecycleSPTimeforSchmidtflipflopsTheoutputissampledbeforeobtainingthesignalneededforinternalresetoperationResetoperationonpower,automaticresetbutton,manualresettwowaysThepoweronautoresetisrealizedbychargingthecapacitoroftheexternalresetcircuitFourFour(AAsshownThen,aslongasthepowerVccTherisetimedoesnotexceedmsItcanbeimplementedautomaticallyElectricalreset,thatis,throughthepowersupply,itbecomesasystemresetinitializationManualresetbutton,levelmodeandpulsemodeoftwoWherein,thekeylevelresetisaccomplishedbyresettingthekeylevelBitbyresistanceandVccWhenthepowerisconnected,thecircuitisasfollowsFourFour(BAsshownandthekeypulseFlushreductionistheuseofRCApositivepulseproducedbyadifferentialcircuit,ThecircuitisshowninFigFourFour(CAsshown:((((A)))PoweronresetPoweronresetPoweronresetPoweronreset((((B)))ButtonlevelresetButtonlevelresetButtonlevelresetButtonlevelreset((((C)))ButtonresetKeypulseresetKeypulseresetKeypulseresetchartTutuchartFourFourResetcircuitResetcircuitResetcircuitResetcircuitTheresistorandcapacitorparametersintheabovecircuitdiagramapplytoMHzCrystaloscillator,canguaranteetheresetsignalhighelectricity========================================pageseventh========================================MeandurationisgreaterthanTwoMachinecycleTheresetcircuitofthesystemadoptsthediagramFourFour(BPoweronresetmodeSTCCDetailsareasfollows:MainpowerpinTwoRoot)VCC(Pin)Powerinput,VPowerSupplyGND(Pin)GroundwireExternalcrystalpin(externalpin)TwoRoot)XTAL(Pin)TheinputoftheonchiposcillationcircuitXTAL(Pin)TheoutputofanonchiposcillationcircuitControlpinFourRoot)RSTVPP(Pin):theresetpinappearsonthepinTwoThehighlevelofthemachinecyclewillenablethemicrocontrollerResetALEPROG(Pin)AddresslatchenablesignalPSEN(Pin)ReadstrobesignalforexternalmemoryEAVPP(Pin)TheinternalandexternalstrobeoftheprogrammemoryisconnectedtothelowlevelandreadfromtheexternalprogrammemoryInstruction,ifhigh,readsinstructionsfrominternalprogrammemoryProgrammableinputOutputpinThirtytwoRoot)STCCSCMFourgroupEightBitprogrammableIOMouthpositionP,P,P,PEverymouthhasamouthEight(aEightRootpin)atotalofThirtytwoRootPO(exportPin~Pin):EightBitbidirectionalIOMouthline,thenameofP~PP(exportPin~Pin):EightQuasibidirectionalIOMouthline,thenameofP~PP(exportPin~Pin):EightQuasibidirectionalIOMouthline,thenameofP~PP(exportPin~Pin):EightQuasibidirectionalIOMouthline,thenameofP~PSTCCThemainfunctionsareshownintabletwoTabletwoSTCCmajorfunctionMainfunctionalcharacteristicscompatibleMCSInstructionsetKRepeatedlyrewritableFlashROM========================================pageeighth========================================ThirtytwoTwowayIOmouthxbitinsideRAMThreeindividualSixteenBitprogrammabletimingCounterinterruptclockfrequencyMHzTwoSerialinterruptProgrammableUARTSerialchannelTwoExternalinterruptsourcecommonSixMiddlefaultsourceTwoReadwriteinterruptlineThreeLevelencryptionbitLowpoweridleandpowerdownmodesThesoftwaresetssleepandwakeupfunctions

用户评论(0)

0/200

精彩专题

上传我的资料

每篇奖励 +2积分

资料评价:

/32
0下载券 下载 加入VIP, 送下载券

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部