71
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
Name
Description
1: Enable interrupt generation.
10
ERRITE
Error status interrupt allowed
This bit allows an interrupt to be generated when a Flash error occurs (when
FLASH_STS.PGERR/ FLASH_STS.WRPERR is set to '1').
0: interrupt generation is prohibited;
1: interrupt generation is allowed.
9
OPTWE
Allow write option byte
When this bit is '1', the option byte is allowed to be programmed. When the
correct key sequence is written in the FLASH_OPTKEY register, this bit is set to
'1'.
Software can clear this bit.
8
SMPSEL
Flash programming mode options
0: SMP1 mode. Before programming, you need to read the content of the address
where the programming is located, and check whether it has been erased. If it has
not been erased, the programming operation will not be performed, and the
FLASH_STS.PGERR warning bit will be set;
1: SMP2 mode. Before programming, it will not judge whether the content of the
address where the programming is located has been erased, and the Flash will
directly start programming. If the programming address has been written with
data before, only the same data can be written when programming the address in
SMP2 mode, otherwise the data cannot be guaranteed to be written correctly.
7
LOCK
Lock
You can only write '1'. When this bit is '1', Flash and FLASH_CTRL are locked.
After detecting the correct unlocking sequence, hardware clears this bit to '0'.
After an unsuccessful unlocking operation, this bit cannot be changed until the
next system reset.
6
START
Start
When this bit is '1', an erase operation will be triggered. This bit can only be set to
'1' by software and cleared to '0' when FLASH_STS.BUSY becomes '1'.
5
OPTER
Erase option bytes.
0: Disable option bytes erase mode;
1: Enable option bytes erase mode.
4
OPTPG
Program option bytes.
0: Disable option bytes program mode;
1: Enable option bytes program mode.
3
Reserved
Reserved, the reset value must be maintained.
2
MER
Mass erase.
0: disable mass erase mode;
1: enable mass erase mode.
1
PER
Page erase.
0: disable page erase mode;
1: enable page erase mode