数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

PM0212 数据表(PDF) 12 Page - STMicroelectronics

部件名 PM0212
功能描述  How to program the STM8TL5xxx Flash program memory and data EEPROM
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

PM0212 数据表(HTML) 12 Page - STMicroelectronics

Back Button PM0212 Datasheet HTML 8Page - STMicroelectronics PM0212 Datasheet HTML 9Page - STMicroelectronics PM0212 Datasheet HTML 10Page - STMicroelectronics PM0212 Datasheet HTML 11Page - STMicroelectronics PM0212 Datasheet HTML 12Page - STMicroelectronics PM0212 Datasheet HTML 13Page - STMicroelectronics PM0212 Datasheet HTML 14Page - STMicroelectronics PM0212 Datasheet HTML 15Page - STMicroelectronics PM0212 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 22 page
background image
Programming STM8 Flash microcontrollers
PM0212
12/22
Doc ID 022351 Rev 2
4
Programming STM8 Flash microcontrollers
This section describes how to program STM8 single-voltage Flash microcontrollers.
4.1
Unlocking the Memory Access Security System (MASS)
The memory must be unlocked before attempting to perform any erase or write operation.
To unlock it, follow the procedure described in Section 3.4: Unwanted memory access
protection, and Table 4: MASS.
The software must poll the PUL and DUL bit, before attempting to write to program memory
and data EEPROM, respectively.
4.2
Block programming
Block write operations allow to program an entire block in one shot, thus minimizing the
programming time.
There are three possible block programming modes: erase, write only (also called fast
programming) and combined erase/write cycle (also called standard block programming).
The programming mode is selected through FLASH_CR2 register.
The memory must be unlocked before performing any of these operations.
Table 4.
MASS
Microcontroller
family
Data EEPROM and option bytes
Program memory
Unlock
Lock
Unlock
Lock
STM8TL5xxx
Write 0xAE then
56h in
FLASH_DUKR
(0x00 5053)(1)(2)
1.
In STM8TL5xxx devices, the option bytes are not accessible in user/IAP mode.
2.
The OPT bit of the FLASH_CR2 register must be set/cleared to enable access to the option bytes.
Reset bit 3 (DUL)
in FLASH_IAPSR
(0x00 5054)
Write 0x56 then
0xAE in
FLASH_PUKR
(0x00 5052)(3)
3.
If wrong keys have been entered, a reset must to be generated to be able to reprogram the right keys.
Reset bit 1 (PUL)
in FLASH_IAPSR
(0x00 5054)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com