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

X  

PM0212 数据表(PDF) 18 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) 18 Page - STMicroelectronics

Back Button PM0212 Datasheet HTML 14Page - STMicroelectronics PM0212 Datasheet HTML 15Page - STMicroelectronics PM0212 Datasheet HTML 16Page - STMicroelectronics PM0212 Datasheet HTML 17Page - STMicroelectronics PM0212 Datasheet HTML 18Page - STMicroelectronics PM0212 Datasheet HTML 19Page - STMicroelectronics PM0212 Datasheet HTML 20Page - STMicroelectronics PM0212 Datasheet HTML 21Page - STMicroelectronics PM0212 Datasheet HTML 22Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 18 / 22 page
background image
Programming STM8 Flash microcontrollers
PM0212
18/22
Doc ID 022351 Rev 2
4.6.1
ICP methods
The in-circuit programming (ICP) method is used to update the content of Flash program
memory and data EEPROM.
The programming interface for STM8 devices is the SWIM (Single Wire Interface Module). It
is used to communicate with an external programming device connected via a cable.
See STM8 SWIM communication protocol and debug module user manual (UM0470) for
more details on the SWIM mode entry and SWIM protocol.
When using the SWIM protocol, two methods can be used:
SWIM active (ICP
mode)
Readout
protection
enabled
Interrupt vectors except for TRAP
P
TRAP
P
Proprietary code area (PCODE)
P(4)
User boot code area (UBC)
P
Main program
P
Data EEPROM area (DATA)
P
Option bytes
P/WROP
(6)
Readout
protection
disabled
Interrupt vectors except for TRAP
R/W/E
TRAP
R/W/E
Proprietary code area (PCODE)
R/E(4)
User boot code area (UBC)
R/E(5)
Main program
R/W/E(7)
Data EEPROM area (DATA)
R/W(3)
Option bytes
R/W
1.
R/W/E = Read; Write and Execute;
R/E = Read and Execute (write operation forbidden);
R = Read (write and execute operations forbidden);
P = the area cannot be accessed (read, execute and write operations forbidden);
P/WROP = Protected, write forbidden except for ROP option byte.
2.
When no UBC area has been defined, the interrupt vectors, except for TRAP, can be modified in user
/IAP mode.
3.
The data memory is write protected (locked) until the correct MASS key is written in the
FLASH_DUKR. It is possible to lock the memory again by resetting the DUL bit in the IAPSR register.
If wrong keys are provided, another key program sequence can be performed without resetting the
device.
4.
The PCODE area can be read and executed only in privileged mode through the TRAP vector. The
PCODE cannot be directly accessed through the SWIM.
5.
To program the UBC area the application must first clear the UBC option byte.
6.
When ROP is removed, the whole memory is erased, including option bytes.
7.
The Flash program memory is write protected (locked) until the correct MASS key is written in the
FLASH_PUKR. It is possible to lock the memory again by resetting the PUL bit in the FLASH_IAPSR
register. If wrong keys are provided, the device must be reset and new keys programmed.
Table 5.
Memory access versus programming method (continued)
Mode
ROP
Memory Area
Access
from core(1)



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