![ARTERY AT32F435 Series Скачать руководство пользователя страница 135](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592135.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 135
Rev 2.03
6.3.3
GPIO drive capability register (GPIOx_ODRVR) (x=A..H)
Address offset: 0x08
Reset values: 0x0000 00C0 for port B 0x00000000 for other ports
Bit
Register
Reset value
Type
Description
Bit
2y+1: 2y
ODRVy
0x0000 0000 rw
GPIOx drive capability (y=0…15)
This field is used to configure the IO port drive capability.
x0: Normal sourcing/sinking strength
01: Large sourcing/sinking strength
11: Normal sourcing/sinking strength
6.3.4
GPIO pull-up/pull-down register (GPIOx_PULL) (x=A..H)
Address offset: 0x0C
Reset values: 0x6400 0000 for port A 0x0000 0100 for port B 0x0000000 for other ports
Bit
Register
Reset value
Type
Description
Bit
2y+1: 2y
PULLy
0x6400 0000 rw
GPIOx pull-up/pull-down configuration (y=0…15)
This field is used to configure the pull-up/pull-down of the
IO port.
00: No pull-up, pull-down
01: Pull-up
10: Pull-down
6.3.5
GPIO input register (GPIOx_IDH) (x=A..H)
Bit
Register
Reset value
Type
Description
Bit 31: 16 Reserved
0x0000
resd
Kept at its default value.
Bit 15: 0
IDT
0xXXXX
ro
GPIOx input data
Indicates the input status of I/O port. Each bit corresponds
to an I/O.
6.3.6
GPIO output register (GPIOx_IDH) (x=A..H)
Bit
Register
Reset value
Type
Description
Bit 31: 16 Reserved
0x0000
resd
Kept at its default value.
Bit 15: 0
ODT
0x0000
rw
GPIOx output data
Each bit represents an I/O port.
It indicates the output status of I/O port.
0: Low
1: High
6.3.7
GPIO set/clear register (GPIOx_SCR) (x=A..H)
Bit
Register
Reset value
Type
Description
Bit 31: 16 IOCB
0x0000
wo
GPIOx clear bit
The corresponding ODT register bit is cleared by writing
“1” to these bits. Otherwise, the corresponding ODT
register bit remains unchanged, which acts as ODT
register bit operations.
0: No action to the corresponding ODT bits
1: Clear the corresponding ODT bits
Bit 15: 0
IOSB
0x0000
wo
GPIOx set bit
The corresponding ODT register bit is set by writing “1” to
these bits. Otherwise, the corresponding ODT register bit
remains unchanged, which acts as ODT register bit
operations.
0: No action to the corresponding ODT bits
1: Set the corresponding ODT bits