поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PM0054 датащи(PDF) 17 Page - STMicroelectronics

номер детали PM0054
подробное описание детали  How to program STM8L and STM8AL Flash program memory and data EEPROM
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0054 датащи(HTML) 17 Page - STMicroelectronics

Back Button PM0054 Datasheet HTML 13Page - STMicroelectronics PM0054 Datasheet HTML 14Page - STMicroelectronics PM0054 Datasheet HTML 15Page - STMicroelectronics PM0054 Datasheet HTML 16Page - STMicroelectronics PM0054 Datasheet HTML 17Page - STMicroelectronics PM0054 Datasheet HTML 18Page - STMicroelectronics PM0054 Datasheet HTML 19Page - STMicroelectronics PM0054 Datasheet HTML 20Page - STMicroelectronics PM0054 Datasheet HTML 21Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 28 page
background image
PM0054
Programming STM8 Flash microcontrollers
Doc ID 15433 Rev 9
17/28
5
Programming STM8 Flash microcontrollers
This section describes how to program STM8 single-voltage Flash microcontrollers.
5.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 4.4: Unwanted memory access
protection, and Table 9. The software must poll the PUL and DUL bit, before attempting to
write to program memory and data EEPROM, respectively.
5.2
Block programming
Block write operations can program an entire block in one shot, thus minimizing the
programming time. There are three 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.
Block program operations can be performed both to main program memory and DATA area:
●
Programming a block of main program memory:
–
The block program operation has to be executed totally from RAM.
–
The program execution continues from RAM. If the program goes back to main
program memory, it is stalled until the block program operation is complete. On
medium and medium+ density STM8L15x and high density STM8L05x/15x/16x,
the DMA controller can be programmed to perform a block transfer to Flash
program memory, and put the CPU in Wait mode.
●
Programming a block of data EEPROM with RWW capability:
–
The block program operation can be executed from main program memory.
However the data loading phase has to be executed from RAM (see below).
–
Normal program execution can continue from main program memory. The HVOFF
bit of the FLASH_IAPSR register can be polled to check if the memory is ready for
RWW.
●
Programming a block of data EEPROM without RWW capability:
The block program operation must be executed totally from RAM.
Table 9.
MASS
Microcontroller
family
Data EEPROM and option bytes
Program memory
Unlock
Lock
Unlock
Lock
STM8L / STM8AL
Write 0xAE then
56h in
FLASH_DUKR
(0x00 5053)(1)(2)
1.
In the low density STM8L101x 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 23 24 25 26 27 28


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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