GD32A50x User Manual
87
0: The checked page is all 0xFF.
1: The checked page is not all 0xFF.
5
ENDF
End of operation flag bit
When the operation executed successfully, this bit is set by hardware. The software
can clear it by writing 1.
4
WPERR
Erase / Program protection error flag bit
When erase / program on protected pages, this bit is set by hardware. The software
can clear it by writing 1.
3
PGAERR
Program alignment error flag bit
This bit is set by hardware when DBUS write data is not alignment. The software
can clear it by writing 1.
2
PGERR
Program error flag bit
When program to the flash while it is not 0xFFFF, this bit is set by hardware. The
software can clear it by writing 1.
1
PGSERR
Program sequence error flag bit.
0
BUSY
The flash is busy bit
When the operation is in progress, this bit is set to 1. When the operation is end or
an error is generated, this bit is cleared to 0.
2.4.10.
Control register 1 (FMC_CTL1)
Address offset: 0x50
Reset value: 0x0000 0080
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
CBCMDLEN[2:0]
Reserved
SRAMCMD[1:0]
Reserved
CBCMD
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
OBRLD
ENDIE
Reserved
ERRIE
OBWEN
FSTPG
LK
START
OB0ER
OB0PG
MERDF
MER
PER
PG
rw
rw
rw
rw
rw
rs
rs
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:29
CBCMDLEN[2:0]
CBCMD read length 2^(CBCMDLEN).
The read length by check blank command.
The read length is 2^ CBCMDLEN double words.
27:26
Reserved
Must be kept at reset value.
25:24
SRAMCMD[1:0]
Shared RAM command. These bits are set by software and cleared by hardware
when PRAMRDY, BRAMRDY, or ERAMRDY is set.
00: no operation