![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 156](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630156.webp)
www.geehy.com Page 155
Port output speed register (GPIOx_OSSEL) (x=A…I)
Offset address: 0x08
Reset value: 0x0C00 0000 (Port A)
0x0000 00C0 (Port B)
0x0000 000 (other ports)
Field
Name
R/W
Description
2y+1:2y OSSELy[1:0] R/W
PortxPin y Output Speed Select (y=0…15)
x0: Low speed
01: Medium speed
11: High speed
The speed of configuration I/O port is written by software
GPIO port pull-up/pull-down register (GPIOx_PUPD) (x=A…I)
Offset address: 0x0C
Reset value: 0x6400 0000 (Port A)
0x0000 0100 (Port B)
0x0000 000 (other ports)
Field
Name
R/W
Description
2y+1:2y
PUPDy[1:0]
R/W
PortxPin y Pull-up/Pull-down Configure (y=0…15)
These bits are written by software to configure pull-up/pull-down
of the port bit
00: Pull-up/Pull-down is disabled
01: Pull up
10: Pull down
11: Reset
GPIO port input data register (GPIOx_IDATA) (x=A...I)
Offset address: 0x10
Reset value: 0x0000 XXXX
Field
Name
R/W
Description
15:0
IDATAy
R
PortxPin y Input Data (y=0…15)
These bits can only be read to store the input values of the
corresponding I/O ports
31:16
Reserved
GPIO port output data register (GPIOx_ODATA) (x=A…I)
Offset address: 0x14
Reset value: 0x0000 0000
Field
Name
R/W
Description
15:0
ODATAy R/W
PortxPin y Output Data (y=0…15)
Read and write operation can be performed by software
For atomic bit set/clear, the ODATAy bit can be set separately by writing to
GPIOx_BSC.
31:16
Reserved