Control Register (Flash_Actlr); Fpec Key Register (Flash_Keyr); Obkey Register (Flash_Obtkeyr) - WCH CH32V003 Series Reference Manual

Table of Contents

Advertisement

CH32V003 Reference Manual
R32_FLASH_KEYR
R32_FLASH_OBKEYR
R32_FLASH_STATR
R32_FLASH_CTLR
R32_FLASH_ADDR
R32_FLASH_OBR
R32_FLASH_WPR
R32_FLASH_MODEKEYR
R32_FLASH_BOOT_MODEKEYR

16.3.1 Control register (FLASH_ACTLR)

Offset address: 0x00
31
30
29
28
15
14
13
12
Bit
Name
[31:2]
Reserved
[1:0]
LATENCY

16.3.2 FPEC key register (FLASH_KEYR)

Offset address: 0x04
31
30
29
28
15
14
13
12
Bit
Name
[31:0]
KEYR

16.3.3 OBKEY register (FLASH_OBTKEYR)

Offset address: 0x08
31
30
29
28
15
14
13
12
V1.3
0x40022004
0x40022008
0x4002200C
0x40022010
0x40022014
0x4002201C
0x40022020
0x40022024
0x40022028
27
26
25
24
Reserved
11
10
9
8
Reserved
Access
RO
Reserved
Number of FLASH wait states
00:0 wait (recommended 0=<SYSCLK=<24MHz)
RW
01:1 wait (recommended 24=<SYSCLK=<48MHz)
Other: Invalid
27
26
25
24
KEYR[31:16]
11
10
9
8
KEYR[15:0]
Access
FPEC keys for entering FPEC unlocking keys
include.
WO
RDPRT key = 0x000000A5.
KEY1 = 0x45670123.
KEY2 = 0xCDEF89AB.
27
26
25
24
OBKEYR[31:16]
11
10
9
8
OBKEYR[15:0]
FPEC key register
OBKEY register
Status register
Configuration register
Address register
Select word register
Write protection register
Extended key register
Unlock BOOT key register
23
22
21
7
6
5
Description
23
22
21
7
6
5
Description
23
22
21
7
6
5
168
http://wch.cn
X
X
0x00000000
0x00000080
X
0x03FFFFFE
0xFFFFFFF
X
X
20
19
18
17
4
3
2
1
LATENCY
Reset
value
20
19
18
17
4
3
2
1
Reset
value
X
20
19
18
17
4
3
2
1
16
0
0
0
16
0
16
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents