công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

PM0051 bảng dữ liệu(PDF) 16 Page - STMicroelectronics

tên linh kiện PM0051
Giải thích chi tiết về linh kiện  How to program STM8S and STM8A Flash program memory and data EEPROM
PDF  27 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0051 bảng dữ liệu(HTML) 16 Page - STMicroelectronics

Back Button PM0051 Datasheet HTML 12Page - STMicroelectronics PM0051 Datasheet HTML 13Page - STMicroelectronics PM0051 Datasheet HTML 14Page - STMicroelectronics PM0051 Datasheet HTML 15Page - STMicroelectronics PM0051 Datasheet HTML 16Page - STMicroelectronics PM0051 Datasheet HTML 17Page - STMicroelectronics PM0051 Datasheet HTML 18Page - STMicroelectronics PM0051 Datasheet HTML 19Page - STMicroelectronics PM0051 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 27 page
background image
Programming STM8 Flash microcontrollers
PM0051
16/27
Doc ID 14614 Rev 3
Note:
1
The mechanism to lock and unlock unwanted memory access protection is identical for
option bytes and data EEPROM (see Table 7: MASS).
2
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.
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.3: Unwanted memory access
protection, and Table 7.
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).
Table 7.
MASS
Microcontroller
family
Data EEPROM and option bytes
Program memory
Unlock
Lock
Unlock
Lock
STM8S and
STM8A
Write 0xAE then
56h in
FLASH_DUKR
(0x00 5064)(1)(2)
1.
The OPT and NOPT bits of FLASH_CR2 and FLASH_NCR2 registers must be set/cleared to enable
access to the option bytes.
2.
If wrong keys have been entered, another key programming sequence can be issued without resetting the
device.
Reset bit 3 (DUL)
in FLASH_IAPSR
(0x00 505F)
Write 0x56 then
0xAE in
FLASH_PUKR
(0x00 5062)(3)
3.
If wrong keys have been entered, the device must be reset, and a key program sequence issued.
Reset bit 1 (PUL)
in FLASH_IAPSR
(0x00 505F)



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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