ST10F272M-4Q3 STMICROELECTRONICS [STMicroelectronics], ST10F272M-4Q3 Datasheet - Page 40

no-image

ST10F272M-4Q3

Manufacturer Part Number
ST10F272M-4Q3
Description
16-bit MCU with 256 Kbyte Flash memory and 20 Kbyte RAM
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
Internal Flash memory
40/176
Double Word Program is always performed on the Double Word aligned on an even Word:
bit ADD2 of FARL is ignored.
Sector erase
Example: Sector Erase of sectors B0F1 and B0F0 of Bank 0 in IFlash Module.
Suspend and resume
Word Program, Double Word Program, and Sector Erase operations can be suspended in
the following way:
Then the operation can be resumed in the following way:
Before resuming a suspended Erase, FCR1H/FCR1L must be read to check if the Erase is
already completed (FCR1H = FCR1L = 0x0000 if Erase is complete). Original setup of
Select Operation bits in FCR0H/L must be restored before the operation resume, otherwise
the operation is aborted and bit RESER of FER is set.
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.
FDR0H
FDR1L
FDR1H
FCR0H
FCR0H
FCR1L
FCR0H
FCR0H
FCR0H
FCR0H
FCR0H
FARL
FARH
FDR0L
FDR0H
FCR0H
FCR0H
FARL
FARH
FDR0L
FCR0H
XFVTAUR0
FCR0H
FARL
FARH
FDR0L
|= 0x8000;
|= 0x0800;
|= 0x0003;
|= 0x8000;
|= 0x4000;
|= 0x0800;
|= 0x8000;
|= 0x0100;
|= 0x8000;
|= 0x0100;
|= 0x8000;
= 0x55AA;
= 0xAA55;
= 0xAA55;
= 0xDFB4;
= 0x0008;
= 0xFFF0;
= 0xFFFF;
= 0xDFB8;
= 0x0008;
= 0xFFFC;
|= 0x0100;
= 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*/
/*Load Data in FDR0H*/
/*Load Data in FDR1L*/
/*Load Data in FDR1H*/
/*Operation start*/
/*Set SER in FCR0H*/
/*Set B0F1, B0F0*/
/*Operation start*/
/*Set SUSP in FCR0H*/
/*Set SER in FCR0H*/
/*Operation resume*/
ST10F272M

Related parts for ST10F272M-4Q3