st10f272z2 STMicroelectronics, st10f272z2 Datasheet - Page 44

no-image

st10f272z2

Manufacturer Part Number
st10f272z2
Description
16-bit Mcu With 256 Kbyte Flash Memory And 20 Kbyte Ram
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
st10f272z2Q3
Manufacturer:
E-CMOS
Quantity:
10 000
Part Number:
st10f272z2Q3
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
st10f272z2T3
Manufacturer:
STMicroelectronics
Quantity:
10 000
Part Number:
st10f272z2T3
Manufacturer:
ST
0
Internal Flash memory
44/189
A Sector Erase can be suspended by setting SUSP bit.
Set protection
Example 1: Enable Write Protection of sectors B0F3-0 of Bank 0 in IFLASH module.
Example 2: Enable Access and Debug Protection.
Example 3: Disable in a permanent way Access and Debug Protection.
Example 4: Enable again in a permanent way Access and Debug Protection, after having
disabled them.
PEN0*/
Disable and re-enable of Access and Debug Protection in a permanent way (as shown by
examples 3 and 4) can be done for a maximum of 16 times.
FCR0H
FARL
FARH
FDR0L
FDR0H
FCR0H
FCR0H
FARL
FARH
FDR0L
FCR0H
XFVTAUR0
FCR0H
FARL
FARH
FDR0L
FCR0H
XFVTAUR0
FCR0H
FARL
FARH
FDR0H
FCR0H
XFVTAUR0 = 0x0000;
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.
|= 0x0100;
|= 0x8000;
|= 0x0100;
|= 0x8000;
= 0xDFB4;
= 0x0008;
= 0xFFF0;
= 0xFFFF;
= 0xDFB8;
= 0x0008;
= 0xFFFC;
|= 0x0100;
|= 0x8000;
|= 0x0100;
|= 0x8000;
= 0x0001;
= 0xDFBC;
= 0x0008;
= 0xFFFE;
= 0x0001;
= 0xDFBC;
= 0x0008;
= 0xFFFE;
/*Set SPR in FCR0H*/
/*Load Add of register FNVWPIR in FARL*/
/*Load Add of register FNVWPIR in FARH*/
/*Load Data in FDR0L*/
/*Load Data in FDR0H*/
/*Operation start*/
/*Set SPR in FCR0H*/
/*Load Add of register FNVAPR0 in FARL*/
/*Load Add of register FNVAPR0 in FARH*/
/*Load Data in FDR0L*/
/*Operation start*/
/*Set TAUB in XFVTAUR0*/
/*Set SPR in FCR0H*/
/*Load Add of register FNVAPR1L in FARL*/
/*Load Add of register FNVAPR1L in FARH*/
/*Load Data in FDR0L for clearing PDS0*/
/*Operation start*/
/*Set TAUB in XFVTAUR0*/
/*Set SPR in FCR0H*/
/*Load Add register FNVAPR1H in FARL*/
/*Load Add register FNVAPR1H in FARH*/
/*Load Data in FDR0H for clearing
/*Operation start*/
/*Reset TAUB in XFVTAUR0*/
ST10F272Z2

Related parts for st10f272z2