st10f272z2 STMicroelectronics, st10f272z2 Datasheet - Page 31

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
ST10F272Z2
5.4.2
Flash control register 0 high
The Flash Control Register 0 High (FCR0H) together with the Flash Control Register 0 Low
(FCR0L) is used to enable and to monitor all the write operations on the IFLASH. The user
has no access in write mode to the Test-Flash (B0TF). Besides, Test-Flash block is seen by
the user in Bootstrap Mode only.
FCR0H (0x08 0002)
Table 9.
SPR
SER
DWPG
WPG
WMS SUSP
RW
15
Bit
RW
14
WPG DWPG SER
RW
13
Flash control register 0 high
Set Protection
This bit must be set to select the Set Protection operation. The Set Protection
operation allows 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 0x0E8FB0-
0x08DFBF. SPR bit is automatically reset at the end of the Set Protection
operation.
Sector Erase
This bit must be set to select the Sector Erase operation in the Flash modules. The
Sector Erase operation allows 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 pre-program the sectors to
0x00, because this is done automatically. SER bit is automatically reset at the end
of the Sector Erase 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 allows 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 2 Flash Data 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.
Word Program
This bit must be set to select the Word (32 bits) Program operation in the Flash
module. The Word Program operation allows 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.
RW
12
RW
11
10
reserved
9
FCR
SPR
RW
8
7
Function
6
5
reserved
4
Internal Flash memory
3
Reset value:
2
1
0000h
31/189
0

Related parts for st10f272z2