Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
84
Добавлен:
01.03.2016
Размер:
3.56 Mб
Скачать

Flash program memory and data EEPROM

RM0016

 

 

4 Flash program memory and data EEPROM

4.1Introduction

The embedded Flash program memory and data EEPROM memories are controlled by a common set of registers. Using these registers, the application can program or erase memory contents and set write protection, or configure specific low power modes. The application can also program the device option bytes.

4.2Glossary

Block

A block is a set of bytes that can be programmed or erased in one single programming operation. Operations that are performed at block level are faster than standard programming and erasing. Refer to Table 5 for the details on block size.

Page

A page is a set of blocks.

A dedicated option byte can be used to configure, by increments of one page, the size of the user boot code.

34/454

Doc ID 14587 Rev 9

RM0016

Flash program memory and data EEPROM

 

 

4.3Main Flash memory features

STM8S and STM8AF EEPROM is divided into two memory areas

Up to 128 Kbytes of Flash program memory. The density differs according to the device. Refer to Section 4.4: Memory organization for details

Up to 2 Kbytes of data EEPROM including option bytes. Data EEPROM density differs according to the device. Refer to Section 4.4: Memory organization for details.

Programming modes

Byte programming and automatic fast byte programming (without erase operation)

Word programming

Block programming and fast block programming mode (without erase operation)

Interrupt generation on end of program/erase operation and on illegal program operation.

Read-while-write capability (RWW). This feature is not available on all devices. Refer to the datasheets for details

In-application programming (IAP) and in-circuit programming (ICP) capabilities

Protection features

Memory readout protection (ROP)

Program memory write protection with memory access security system (MASS keys)

Data memory write protection with memory access security system (MASS keys)

Programmable write protected user boot code area (UBC).

Memory state configurable to operating or power-down (IDDQ) in Halt and Active-halt modes

Doc ID 14587 Rev 9

35/454

Соседние файлы в папке Минимум документации STM8