您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > stm8l系列单片机原版参考手册
October2012DocID15226Rev101/575RM0031ReferencemanualSTM8L05xx,STM8L15xx,STM8L162x,STM8AL31xxandSTM8AL3LxxmicrocontrollerfamilyIntroductionThisreferencemanualtargetsapplicationdevelopers.ItprovidescompleteinformationonhowtousetheSTM8L05xx,STM8L15xx,STM8L16xx,STM8AL31xxandSTM8AL3Lxxmicrocontrollermemoryandperipherals.TheSTM8L05xx/STM8L15xx/STM8L16xx/STM8AL31xx/STM8AL3Lxxisafamilyofmicrocontrollerswithdifferentmemorydensities,packagesandperipherals.Theseproductsaredesignedforultralowpowerapplications.Refertotheproductdatasheetforthecompletelistofavailableperipherals.Fororderinginformation,pindescription,mechanicalandelectricaldevicecharacteristics,pleaserefertotheproductdatasheet.ForinformationontheSTM8SWIMcommunicationprotocolanddebugmodule,pleaserefertotheusermanual(UM0470).ForinformationontheSTM8core,pleaserefertotheSTM8CPUprogrammingmanual(PM0044).Forinformationonprogramming,erasingandprotectionoftheinternalFlashmemorypleaserefertotheSTM8LFlashprogrammingmanual(PM0054).Table1.ApplicableproductsTypePartnumbersMicrocontrollersValuelinelowdensitySTM8L05xxdevices:STM8L051x3microcontrollerswith8-KBFlashValuelinemediumdensitySTM8L05xxdevices:STM8L052x6microcontrollerswith32-KBFlashValuelinehighdensitySTM8L05xxdevices:STM8L052x8microcontrollerswith64-KBFlashLowdensitySTM8L15xdevices:STM8L151C2/K2/G2/F2,STM8L151C3/K3/G3/F3microcontrollerswith4-KBor8-KBFlashMediumdensitySTM8L15xxdevices:STM8L151C4/K4/G4,STM8L151C6/K6/G6,STM8L152C4/K4andSTM8L152C6/K6microcontrollerswith16-KBor32-KBFlashMediumdensitySTM8AL31xx/STM8AL3Lxxdevices:STM8AL3168,STM8AL3166,STM8AL3148,STM8AL3146,STM8AL3138,STM8AL3136,STM8AL3L68,STM8AL3L66,STM8AL3L48,STM8AL3L46microcontrollerswith8-KB,16-KBor32-KBFlashMedium+densitySTM8L15xxdevices:STM8L151R6andSTM8L152R6microcontrollerswith32-KBFlash(Widerrangeofperipheralsthanmediumdensitydevices)HighdensitySTM8L15xxdevices:STM8L151x8andtheSTM8L152x8microcontrollerswith64-KBFlash(Sameperipheralsetasmedium+)HighdensitySTM8L16xxdevices:STM8L162x8microcontrollerswith64-KBFlash(SameperipheralsetashighdensitySTM8L152devicesplustheAEShardwareaccelerator)(CPU)................................301.1Introduction...............................................301.2CPUregisters..............................................301.2.1DescriptionofCPUregisters.................................301.2.2STM8CPUregistermap....................................341.3Globalconfigurationregister(CFG_GCR)........................341.3.1Activationlevel............................................341.3.2SWIMdisable.............................................351.3.3Descriptionofglobalconfigurationregister(CFG_GCR)............351.3.4Globalconfigurationregistermapandresetvalues................352BootROM.................................................363FlashprogrammemoryanddataEEPROM.....................373.1Introduction...............................................373.2Glossary..................................................373.3MainFlashmemoryfeatures..................................383.4Memoryorganization........................................393.4.1Lowdensitydevicememoryorganization.......................393.4.2Mediumdensitydevicememoryorganization....................403.4.3Medium+densitydevicememoryorganization...................413.4.4Highdensitydevicememoryorganization.......................423.4.5Proprietarycodearea(PCODE)..............................433.4.6Userbootarea(UBC)......................................433.4.7DataEEPROM(DATA)......................................463.4.8Mainprogramarea........................................463.4.9Optionbytes..............................................463.5Memoryprotection..........................................473.5.1Readoutprotection........................................473.5.2Memoryaccesssecuritysystem(MASS).......................473.5.3Enablingwriteaccesstooptionbytes..........................493.6Memoryprogramming.......................................493.6.1Read-while-write(RWW)....................................49RM0031ContentsDocID15226Rev103/5753.6.2Byteprogramming.........................................493.6.3Wordprogramming........................................503.6.4Blockprogramming........................................503.6.5Optionbyteprogramming...................................523.7Flashlowpowermodes......................................523.8ICPandIAP...............................................523.9Flashregisters.............................................573.9.1Flashcontrolregister1(FLASH_CR1).........................573.9.2Flashcontrolregister2(FLASH_CR2).........................583.9.3Flashprogrammemoryunprotectingkeyregister(FLASH_PUKR)...583.9.4DataEEPROMunprotectionkeyregister(FLASH_DUKR)..........593.9.5Flashstatusregister(FLASH_IAPSR)..........................593.9.6Flashregistermapandresetvalues...........................604Singlewireinterfacemodule(SWIM)anddebugmodule(DM)....
本文标题:stm8l系列单片机原版参考手册
链接地址:https://www.777doc.com/doc-5229950 .html