GD32W51x User Manual
243
8.5.4.
Port pull-up/pull-down register (GPIOx_PUD, x=A..C)
Address offset: 0x0C
Reset value: The reset value is determined by the FW AES Key bit0 and bit1 in the EFUSE.
When the bit0 is 1, the PA4/PA5/PA6/PA7/PB3/PB4 is configured as one set of QSPI port
automatically by the hardware, and when the bit1 is 1, the PA9/PA10/PA11/PA12/PC4/PC5
is configured as the other set of QSPI port automatically by the hardware as well. FW AES
Key[1:0] default value is 00. Please refer to the table
Table 8-5. GPIOx_PUD reset value
below for this register reset value.
Table 8-5. GPIOx_PUD reset value
FW AES Key[1:0]
GPIOA_PUD
GPIOB_PUD
GPIOC_PUD
00
0x6400 0000
0x0000 0100
0x0000 0000
01
0x6400 A000
0x0000 0280
0x0000 0000
10
0x6680 0000
0x0000 0100
0x0000 0A00
11
0x6680 A000
0x0000 0280
0x0000 0A00
This register has to be accessed by word(32-bit)/half-word(16-bit)/byte(8-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
PUD15[1:0]
PUD14[1:0]
PUD13[1:0]
PUD12[1:0]
PUD11[1:0]
PUD10[1:0]
PUD9[1:0]
PUD8[1:0]
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PUD7[1:0]
PUD6[1:0]
PUD5[1:0]
PUD4[1:0]
PUD3[1:0]
PUD2[1:0]
PUD1[1:0]
PUD0[1:0]
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:30
PUD15[1:0]
Pin 15 pull-up or pull-dow n bits
These bits are set and cleared by softw are.
refer to PUD0[1:0]description
29:28
PUD14[1:0]
Pin 14 pull-up or pull-dow n bits
These bits are set and cleared by softw are.
refer to PUD0[1:0]description
27:26
PUD13[1:0]
Pin 13 pull-up or pull-dow n bits
These bits are set and cleared by softw are.
refer to PUD0[1:0]description
25:24
PUD12[1:0]
Pin 12 pull-up or pull-dow n bits
These bits are set and cleared by softw are.
refer to PUD0[1:0]description
23:22
PUD11[1:0]
Pin 11 pull-up or pull-dow n bits
These bits are set and cleared by softw are.
refer to PUD0[1:0]description