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

X  

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

Back Button PM0212 Datasheet HTML 12Page - STMicroelectronics PM0212 Datasheet HTML 13Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 22 page
background image
Programming STM8 Flash microcontrollers
PM0212
16/22
Doc ID 022351 Rev 2
The erase/program cycle lasts longer if the whole word containing the byte to be
programmed is not empty because in this case an erase operation is performed
automatically. If the word is empty, the erase operation is not performed. However, if a
defined programming time is wanted, the FIX bit in the FLASH_CR1 register forces the
programming operation to always erase first whatever the contents of the memory.
Therefore a fixed programming time is guaranteed (erase time + write time).
To erase a byte location, just write ‘0x00’ to the byte location.
Caution:
A byte programming operation performs a word (4-byte) access to the Flash program
memory. If a byte program operation is interrupted by a reset, the 4 bytes programmed in the
memory may be corrupted.
4.5
Programming the option bytes
Option bytes are used to configure the device hardware features as well as the memory
protection. They are stored in a dedicated memory block.
4.5.1
Summary of memory dedicated option bytes
The Flash program memory includes several option bytes dedicated to memory protection:
ROP
The ROP option byte is used to prevent the Flash program memory from being read
and modified in ICP/SWIM mode. Refer to Section 3.1: Readout protection for a
detailed description of readout protection.
PCODESIZE
The PCODESIZE option byte is used to configure the size of the proprietary code area
(PCODE) which can be used to store proprietary software libraries. The minimum size
of the proprietary code area is of 1 page (64 bytes) and the maximum size of
253 pages. The PCODESIZE option byte can be modified only in ICP/SWIM mode.
Refer to Section 3.2: Proprietary code area protection for a detailed description of the
PCODE area and PCODESIZE option byte.
UBC
The UBC option byte is used to program the size of the write protected user boot code
area. The boot area always includes the reset and interrupt vectors and can go up to
the full program memory size. The boot area size granularity is of one page.
Refer to Section 3.3: User Boot Code area protection for a detailed description of the
UBC area.
DATASIZE
The DATASIZE option byte is used to configure the size of the data EEPROM area.
This option byte specifies the number of pages starting from the end of the memory.
The maximum size of the data EEPROM area is of 2 Kbytes.
Refer to STM8TL5xxx datasheet for details on DATASIZE value programming.



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