![Geehy SEMICONDUCTOR APM32F030x4x6x8xC Скачать руководство пользователя страница 20](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629020.webp)
www.geehy.com Page 19
State register (FMC_STS)
Offset address: 0x0C
Reset value: 0x0000 0000
Field
Name
R/W
Description
0
BUSYF
R
Busy Flag
This bit indicates that a flash operation is in progress. These bits can only
perform write operation, and 0 is returned when read operation is performed.
1
Reserved
2
PEF
R/W
Programming Error Flag
This bit will be set by software when the value before the address is edited is
not "0xFFFF".
3
Reserved
4
WPEF
R/W
Write Protection Error Flag
This bit will be set by hardware when programming the write protection
address in FLASH.
5
OCF
R/W
Operation Complete Flag
This bit will be set by hardware when read/write operation in FLASH is
completed.
31:6
Reserved
Control register 2 (FMC_CTRL2)
Offset address: 0x10
Reset value: 0x0000 0080
Field
Name
R/W
Description
0
PG
R/W
Program
Set this bit to 1 to program Flash
1
PAGEERA R/W
Page Erase
Set this bit to 1 to erase the page
2
MASSERA R/W
Mass Erase
Set this bit to 1 to erase the mass.
3
Reserved
4
OBP
R/W
Option Byte Program
Set this bit to 1 to program the option byte.
5
OBE
R/W
Option Byte Erase
Set this bit to 1 to erase the option byte.
6
STA
R/W
Start Erase
This bit can be only set to 1 by software, and can be reset by clearing
STS_BUSYF bit.
7
LOCK
R/W
Lock
This bit can be written to 1 only, and when this bit is set to 1, it means that
FMC and CTRL2 registers are locked.
8
Reserved
9
OBWEN
R/W
Option Byte Write Enable
When this bit is set to 1, the option byte can be programmed.
10
ERRIE
R/W
Error interrupt Enable
0: Interrupt is disabled
1: Interrupt is enabled