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

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
30/176
Table 8.
Bit Name
14 SUSP
13
12 DWPG
11
8
WPG
SER
SPR
Suspend
This bit must be set to suspend the current Program (Word or Double Word) or Sector
Erase operation in order to read data in one of the Sectors of the Bank under
modification or to program data in another Bank. The Suspend operation resets the
Flash Bank to normal read mode (automatically resetting bit BSY0). When in Program
Suspend, the Flash module accepts only the following operations: Read and Program
Resume. When in Erase Suspend the module accepts only the following operations:
Read, Erase Resume and Program (Word or Double Word; Program operations cannot
be suspended during Erase Suspend). To resume a suspended operation, the WMS bit
must be set again, together with the selection bit corresponding to the operation to
resume (WPG, DWPG, SER).
Note: It is forbidden to start a new Write operation with bit SUSP already set.
Word Program
This bit must be set to select the Word (32 bits) Program operation in the Flash module.
The Word Program operation can be used to program 0s in place of 1s. The Flash
Address to be programmed must be written in the FARH/L registers, while the Flash
Data to be programmed must be written in the FDR0H/L registers before starting the
execution by setting bit WMS. WPG bit is automatically reset at the end of the Word
Program operation.
Double Word Program
This bit must be set to select the Double Word (64 bits) Program operation in the Flash
module. The Double Word Program operation can be used to program 0s in place of 1s.
The Flash Address in which to program (aligned with even words) must be written in the
FARH/L registers, while the two Flash Data words to be programmed must be written in
the FDR0H/L registers (even word) and FDR1H/L registers (odd word) before starting
the execution by setting bit WMS. DWPG bit is automatically reset at the end of the
Double Word Program operation.
Sector Erase
This bit must be set to select the Sector Erase operation in the Flash modules. The
Sector Erase operation can be used to erase all the Flash locations to value 0xFF. From
1 to all the sectors of the same Bank (excluded Test-Flash for Bank B0) can be selected
to be erased through bits BxFy of FCR1H/L registers before starting the execution by
setting bit WMS. It is not necessary to preprogram the sectors to 0x00, because this is
done automatically. SER bit is automatically reset at the end of the Sector Erase
operation.
Set Protection
This bit must be set to select the Set Protection operation. The Set Protection operation
can be used to program 0s in place of 1s in the Flash Non-Volatile Protection Registers.
The Flash Address in which to program must be written in the FARH/L registers, while
the Flash Data to be programmed must be written in the FDR0H/L before starting the
execution by setting bit WMS. A sequence error is flagged by bit SEQER of FER if the
address written in FARH/L is not in the range of 0x0E8FB0 to 0x08DFBF. SPR bit is
automatically reset at the end of the Set Protection operation.
Flash control register 0 high (continued)
Function
ST10F272M

Related parts for ST10F272M-4Q3