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) 17 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) 17 Page - STMicroelectronics

Back Button 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 PM0051 Datasheet HTML 21Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 27 page
background image
PM0051
Programming STM8 Flash microcontrollers
Doc ID 14614 Rev 3
17/27
The programming mode is selected through two complementary registers, FLASH_CR2 and
FLASH_NCR2.
The memory must be unlocked before performing any of these operations.
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.
●
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, after checking
the HVOFF bit in the FLASH_IAPSR register.
●
Programming a block of data EEPROM on devices without RWW capability:
The block program operation must be executed totally from RAM.
The programming can also be performed directly through the SWIM interface. In this case, it
is recommended to stall the device in order to prevent the core from accessing the Flash
program memory during the block program or erase operation. This can be done by setting
the STALL bit in the DM_CSR2 debug module register. Refer to the STM8 SWIM
communication protocol and debug module (UM0470) for more information.
Caution:
During a block program or erase operation, it is recommended to avoid executing
instructions performing a read access to program memory.
Caution:
If the number of written memory locations is higher than what is required in the block
program/erase sequence, the additional locations are handled as redundant byte write
operations.
If the number of written memory locations is lower than what is specified in the block
program/erase sequence, the block program/erase process does not start and the CPU
stalls waiting for the remaining operations to be performed.
Caution:
EOP and WR_PG_DIS bits of FLASH_IAPSR register are automatically cleared when a
program/erase operation starts.
Caution:
If a block program or erase sequence is interrupted by a reset, the data programmed in the
memory may be corrupted.



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