ST10F272B_12 STMICROELECTRONICS [STMicroelectronics], ST10F272B_12 Datasheet - Page 46

no-image

ST10F272B_12

Manufacturer Part Number
ST10F272B_12
Description
16-bit MCU with 256 Kbyte Flash memory and 12/20 Kbyte RAM
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
Internal Flash memory
46/188
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;
Doc ID 11917 Rev 3
/*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*/
ST10F272B/ST10F272E

Related parts for ST10F272B_12