预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共24页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

PM0051 Programmingmanual HowtoprogramFlashprogrammemoryanddataEEPROM onSTM8Smicrocontrollerfamily Introduction ThismanualdescribeshowtoprogramFlashprogrammemoryanddataEEPROMon STM8microcontrollers.ItappliestoSTM8Saccessandperformancelinefamiliesof devices.Itisintendedtoprovideinformationtotheprogrammingtoolmanufacturersandto thecustomerswhowanttoimplementprogrammingbythemselvesontheirproductionline. Thein-circuitprogramming(ICP)methodisusedtoupdatethecontentofFlashprogram memoryanddataEEPROMwhiletheusersoftwareisnotrunning.ItusestheSingleWire interfaceModule(SWIM)tocommunicatebetweentheprogrammingtoolandthedevice. IncontrasttotheICPmethod,in-applicationprogramming(IAP)canuseany communicationinterfacesupportedbythemicrocontroller(I/Os,SPI,USART,SCI,USB, CAN...).IAPhasbeenimplementedforuserswhowanttheirapplicationsoftwaretoupdate itselfbyre-programmingtheFlashprogrammemoryduringprogramexecution.Themain advantageofIAPisitsabilitytore-programFlashprogrammemoryanddataEEPROM whenthechiphasalreadybeensolderedontheapplicationboardandwhiletheuser softwareisrunning.Nevertheless,partoftheFlashprogrammemoryhastobepreviously programmedusingICP. SomeSTM8SdevicesalsocontainsabootloaderembeddedinaROMmemory.Through thisfirmwarethedevicememorycanbere-programmedusingastandardcommunication interface.Thisprogrammingmethodisnotdescribedinthisdocument. Fordetailsonmemoryimplementationandfeatures,registersorstacktopaddresses,refer totheproductdatasheets. Relateddocument ●STM8SWIMcommunicationprotocolanddebugmodule(UM0470) ●STM8bootloaderusermanual(UM0500) ●STM8Smicrocontrollerfamilyreferencemanual(RM0016) ●InapplicationprogrammingexampleusingaPChostadapterwiththeSTM8I2Cand SPIperipherals(AN2737) ●STM8S20xxxperformancelinedatasheet(Flashprogrammemorydensityfrom32to 128Kbytes) ●STM8S10xxxaccesslinedatasheets(Flashprogrammemorydensityfrom8Kbytesto 32Kbytes) February2009Rev11/24 www.st.com ContentsPM0051 Contents 1Glossary...................................................4 2Memory