GD32W51x User Manual
237
8.5.
Register definition
GPIOA secure access base address: 0x5002 0000
GPIOA non-secure base address: 0x4002 0000
GPIOB secure access base address: 0x5002 0400
GPIOB non-secure base address: 0x4002 0400
GPIOC secure access base address: 0x5002 0800
GPIOC non-secure base address: 0x4002 0800
8.5.1.
Port control register (GPIOx_CTL, x=A..C)
Address offset: 0x00
Reset value: The reset value is determined by the FW AES Key(Firmware
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
below for this register reset value.
Table 8-3. GPIOx_CTL reset value
FW AES Key[1:0]
GPIOA_CTL
GPIOB_CTL
GPIOC_CTL
00
0xA800 0000
0x0000 0280
0x0000 0000
01
0xA800 AA00
0x0000 0280
0x0000 0000
10
0xAAA8 0000
0x0000 0280
0x0000 0A00
11
0xAAA8 AA00
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
CTL15[1:0]
CTL14[1:0]
CTL13[1:0]
CTL12[1:0]
CTL11[1:0]
CTL10[1:0]
CTL9[1:0]
CTL8[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
CTL7[1:0]
CTL6[1:0]
CTL5[1:0]
CTL4[1:0]
CTL3[1:0]
CTL2[1:0]
CTL1[1:0]
CTL0[1:0]
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:30
CTL15[1:0]
Pin 15 configuration bits
These bits are set and cleared by softw are.
refer to CTL0[1:0]description
29:28
CTL14[1:0]
Pin 14 configuration bits
These bits are set and cleared by softw are.