전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

PM0054 데이터시트(PDF) 16 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) 16 Page - STMicroelectronics

Back Button PM0054 Datasheet HTML 12Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 28 page
background image
Memory protection strategy
PM0054
16/28
Doc ID 15433 Rev 9
4.4
Unwanted memory access protection
The unwanted memory access protection consists of writing two 8-bit keys in the right order
into dedicated MASS key registers.
Writing the correct sequence of keys in the program memory MASS key register
(FLASH_PUKR) enables the programming of the program memory area excluding the UBC
and the PCODE area (when available). If wrong keys are provided, a reset must to be
generated to be able to reprogram the right keys.
Once the write memory protection has been removed, it is possible to reactivate the
protection of the area by resetting the PUL bit in FLASH_IAPSR.
To enable write access to the data EEPROM area, another specific MASS key register
(FLASH_DUKR) and a different key sequence must be used. Once the data
EEPROM/option byte area is unlocked, it is possible to reactivate the protection of the area
by resetting the DUL bit in FLASH_IAPSR.
If wrong keys have been provided to the FLASH_PUKR register, the device must be reset
before performing a new key program sequence. However, when wrong keys are provided to
the FLASH_DUKR register, new keys can be entered without the device being previously
reset.
On low density STM8L devices, the size of the DATA area can be configured through the
DATASIZE option byte for a given product.
In order to be as effective as possible, the application software must lock again the
unwanted memory access protection as soon as the programming is completed. Otherwise,
the protection level of the MASS is significantly reduced. To activate the MASS protection
again, the user must reset the corresponding bits in the FLASH_IAPSR register (DUL bit for
data EEPROM or PUL bit for Flash program memory).
Note:
The mechanism to lock and unlock unwanted memory access protection is identical for
option bytes and data EEPROM (see Table 9: MASS).
Before starting programming program memory or data EEPROM, the software must verify
that the area is not write-protected by checking that the PUL or DUL bit is effectively set.



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



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