162
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
Name
Description
19:18
15:14
11:10
7:6
3:2
01: Input floating mode
10: input pull-up/ input pull-down mode (note: when configuring the input pull-up/
input pull-down mode, you need to set/reset the corresponding GPIOx_POD register)
11: reserved
When MODE[1:0]>00 output mode:
00: General push-pull output mode
01: General open-drain output mode
10: Alternate function push-pull output mode
11: Open-drain output mode of alternate function
29:28
25:24
21:20
17:16
13:12
9:8
5:4
1:0
PMODEy[1:0]
Mode bit of port x (y = 8…15)
00: input mode (state after reset)
01: output mode, maximum speed 2MHz
10: output mode, maximum speed 10MHz
11: output mode, maximum speed 50MHz
7.3.4
GPIO port input data register (GPIOx_PID)
Address offset: 0x08
Reset value: 0x0000 0000
Bit field
Name
Description
31:16
Reserved
Reserved, the reset value must be maintained.
15:0
PIDy
Port input data (y = 0…15)
These bits are read-only and can only be read in the form of 16-bit words, and the
read value is the state of the corresponding I/O port.
7.3.5
GPIO port output data register (GPIOx_POD)
Address offset: 0x0C
Reset value: 0x0000 A000(x=A); 0x0000 0010(x=B); 0x0000 0000(x=C,D,E,F,G)