ST10F276Z5 STMicroelectronics, ST10F276Z5 Datasheet - Page 44

no-image

ST10F276Z5

Manufacturer Part Number
ST10F276Z5
Description
16-BIT MICROCONTROLLER WITH MAC UNIT, UP TO 832 KBYTES FLASH MEMORY AND UP TO 68 KBYTES RAM
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST10F276Z5

Single Voltage Supply
5V ±10% (embedded regulator for 1.8 V core supply)

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST10F276Z5Q3
Manufacturer:
AD
Quantity:
230
Part Number:
ST10F276Z5Q3
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST10F276Z5Q3TR
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST10F276Z5T3
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
ST10F276Z5T3
Manufacturer:
ST
0
Company:
Part Number:
ST10F276Z5T3
Quantity:
9 000
Internal Flash memory
44/239
Erase suspend, program and resume
A Sector Erase operation can be suspended in order to program (Word or Double Word)
another Sector.
Example: Sector Erase of sector B3F1 of Bank 3 in XFLASH Module.
Example: Sector Erase Suspend.
Example: Word Program of data 0x5555AAAA at address 0x0C5554 in XFLASH module.
Once the Program operation is finished, the Erase operation can be resumed in the
following way:
Notice that during the Program Operation in Erase suspend, bits SER and SUSP are low. A
Word or Double Word Program during Erase Suspend cannot be suspended.
To summarize:
Set protection
Example 1: Enable Write Protection of sectors B0F3-0 of Bank 0 in IFLASH module.
Notice that bit SMOD of FCR0H must not be set, since Write Protection bits of IFLASH
Module are stored in Test-Flash (XFLASH Module).
FCR0H|= 0x0800;/*Set SER in FCR0H*/
FCR1H|= 0x0002;/*Set B3F1*/
FCR0H|= 0x8000;/*Operation start*/
FCR0H|= 0x4000;/*Set SUSP in FCR0H*/
do
{tmp1 = FCR0L;
} while ((tmp1 && 0x0010) || (tmp2 && 0x8000));
FCR0H&= 0xBFFF;/*Rst SUSP in FCR0H*/
FCR0H|= 0x2000;/*Set WPG in FCR0H*/
FARL = 0x5554; /*Load Add in FARL*/
FARH = 0x000C; /*Load Add in FARH*/
FDR0L = 0xAAAA; /*Load Data in FDR0L*/
FDR0H = 0x5555; /*Load Data in FDR0H*/
FCR0H|= 0x8000; /*Operation start*/
FCR0H|= 0x0800;/*Set SER in FCR0H*/
FCR0H|= 0x8000;/*Operation resume*/
FCR0H|= 0x0100;/*Set SPR in FCR0H*/
FARL = 0xDFB4;/*Load Add of register FNVWPIRL in FARL*/
FARH = 0x000E;/*Load Add of register FNVWPIRL in FARH*/
FDR0L = 0xFFF0;/*Load Data in FDR0L*/
FDR0H = 0xFFFF;/*Load Data in FDR0H*/
FCR0H|= 0x8000;/*Operation start*/
tmp2 = FCR0H;
A Sector Erase can be suspended by setting SUSP bit
To perform a Word Program operation during Erase Suspend, firstly bits SUSP
and SER must be reset, then bit WPG and WMS can be set
To resume the Sector Erase operation bit SER must be set again
In any case it is forbidden to start any write operation with SUSP bit already set
/*Loop to wait for LOCK=0 and WMS=0*/
ST10F276Z5

Related parts for ST10F276Z5