
CH32V003
Reference Manual
V1.3
170
Bit
Name
Access
Description
Reset
value
[31:20]
Reserved
RO
Reserved
0
19
BUFRST
RW
BUF reset operation
0
18
BUFLOAD
RW
Cache data into BUF
0
17
FTER
RW
Performs a fast page (64Byte) erase operation.
0
16
FTPG
RW
Performs quick page programming operations.
0
15
FLOCK
RW1
Fast programming lock. Write '1' only. When
this bit is '1' it indicates that fast
programming/erase mode is not available.
Hardware clears this bit to '0' after the correct
unlock sequence is detected.
The software is set to 1 and re-locked.
1
[14:13]
Reserved
RO
Reserved
0
12
EOPIE
RW
Operation completion interrupt control (EOP set
in FLASH_STATR register).
1: Allow generation of interrupts.
0: Interrupt generation is disabled.
0
11
Reserved
RO
Reserved
0
10
ERRIE
RW
Error
status
interrupt
control
(PGERR/WRPRTERR set in FLASH_STATR
register).
1: Allow generation of interrupts.
0: Interrupt generation is disabled.
0
9
OBWRE
RW0
User selects word lock, software clears 0.
1: Indicates that the user select word can be
programmed for operation. It needs to be set by
hardware after writing the correct sequence in
FLASH_OBKEYR register.
0: Re-lock the user selection word
after the software is cleared.
0
8
Reserved
RO
Reserved
0
7
LOCK
RW1
Lock. Only '1' can be written. When this bit is '1'
it means that FPEC and FLASH_CTLR are
locked and unwritable. Hardware clears this bit
to '0' after the correct unlock sequence is
detected.
After an unsuccessful unlock operation, the bit
will not be changed again until the next system
reset.
1
6
STRT
RW1
Start. Set 1 to start an erase action and the
hardware automatically clears 0 (BSY becomes
'0').
0
5
OBER
RW
Perform user-selected word erasure
0
4
OBG
RW
Perform user-selected word programming
0
3
Reserved
RO
Reserved
0
2
MER
RW
Performs a full-erase operation (erases the entire
user area).
0
1
PER
RW
Perform sector erase (1K)
0
0
PG
RW
Performs standard programming operations.
0
16.3.6 Address register (FLASH_ ADDR)
Offset address: 0x14
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
ADDR[31:16]