ST10F272B_12 STMICROELECTRONICS [STMicroelectronics], ST10F272B_12 Datasheet - Page 34

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
5.4.3
34/188
Table 8.
Flash control register 1 low
The Flash Control Register 1 Low (FCR1L), together with Flash Control Register 1 High
(FCR1H), is used to select the Sectors to Erase, or during any write operation to monitor the
status of each Sector and Bank.
FCR1L (0x08 0004)
Table 9.
SUSP
WMS
B0F(7:0)
15
Bit
Bit
14
Flash control register 0 high (continued)
Flash control register 1 low
13
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.
Write Mode Start
This bit must be set to start every write operation in the Flash module. At the end of
the write operation or during a Suspend, this bit is automatically reset. To resume a
suspended operation, this bit must be set again. It is forbidden to set this bit if bit
ERR of FER is high (the operation is not accepted). It is also forbidden to start a
new write (program or erase) operation (by setting WMS high) when bit SUSP of
FCR0 is high. Resetting this bit by software has no effect.
Bank 0 IFLASH Sector 9:0 Status
These bits must be set during a Sector Erase operation to select the sectors to
erase in Bank 0. Besides, during any erase operation, these bits are automatically
set and give the status of the 8 sectors of Bank 0 (B0F7-B0F0). The meaning of
B0Fy bit for Sector y of Bank 0 is given by the next Table 4 Banks (BxS) and
Sectors (BxFy) Status bits meaning. These bits are automatically reset at the end
of a Write operation if no errors are detected.
12
reserved
11
Doc ID 11917 Rev 3
10
9
FCR
8
B0F7 B0F6 B0F5 B0F4 B0F3 B0F2 B0F1 B0F0
RS
7
Function
Function
RS
6
RS
5
RS
4
ST10F272B/ST10F272E
RS
3
Reset value:
RS
2
RS
1
0000h
RS
0

Related parts for ST10F272B_12