欢迎来到天天文库
浏览记录
ID:33498464
大小:192.44 KB
页数:27页
时间:2019-02-26
《stm8 flash编程手册》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、PM0051ProgrammingmanualHowtoprogramSTM8SandSTM8AFlashprogrammemoryanddataEEPROMIntroductionThismanualdescribeshowtoprogramFlashprogrammemoryanddataEEPROMonSTM8microcontrollers.ItappliestoaccessandperformancelineSTM8SandmediumandhighdensitySTM8Adevices.Itisintendedtoprovideinformationtotheprogrammin
2、gtoolmanufacturersandtothecustomerswhowanttoimplementprogrammingbythemselvesontheirproductionline.Thein-circuitprogramming(ICP)methodisusedtoupdatethecontentofFlashprogrammemoryanddataEEPROMwhiletheusersoftwareisnotrunning.ItusestheSinglewireinterfacemodule(SWIM)tocommunicatebetweentheprogrammingto
3、olandthedevice.IncontrasttotheICPmethod,in-applicationprogramming(IAP)canuseanycommunicationinterfacesupportedbythemicrocontroller(I/Os,SPI,USART,I2C,USB,CAN...).IAPhasbeenimplementedforuserswhowanttheirapplicationsoftwaretoupdateitselfbyre-programmingtheFlashprogrammemoryduringprogramexecution.The
4、mainadvantageofIAPisitsabilitytore-programFlashprogrammemoryanddataEEPROMwhenthechiphasalreadybeensolderedontheapplicationboardandwhiletheusersoftwareisrunning.Nevertheless,partoftheFlashprogrammemoryhastobepreviouslyprogrammedusingICP.SomedevicesalsocontainabootloaderembeddedinaROMmemory.Throughth
5、isfirmwarethedevicememorycanbere-programmedusingastandardcommunicationinterface.Thisprogrammingmethodisnotdescribedinthisdocument.Fordetailsonmemoryimplementationandfeatures,registersorstacktopaddresses,refertotheproductdatasheets.Relateddocuments●STM8SWIMcommunicationprotocolanddebugmodule(UM0470)
6、●STM8bootloaderusermanual(UM0560)l●STM8SandSTM8Amicrocontrollerfamiliesreferencemanual(RM0016)2●Basicin-applicationprogrammingexampleusingtheSTM8ICandSPIperipherals(AN2737)●STM8in-applicationprogrammingexample(AN2659)●Performancelinedatasheet(highdensityFlashprogramanddataEEPROM)●Accesslinedatashee
7、ts(lowandmediumdensityFlashprogramanddataEEPROM)●STM8Adatasheets(upto32Kbytesandupto128KbytesofFlashprogrammemory)June2011DocID14614Rev31/27www.st.comContentsPM0051Contents1Glossary.........................
此文档下载收益归作者所有