
AT32F413
Series Reference Manual
2022.06.27
Page 87
Rev 2.00
6.3.2
GPIO configuration register high (GPIOx_CFGHR) (A..F)
Bit
Register
Reset value
Type
Description
Bit 31: 30
Bit 27: 26
Bit 23: 22
Bit 19: 18
Bit 15: 14
Bit 11: 10
Bit 7: 6
Bit 3: 2
IOFCy
0x1
rw
GPIOx function configuration (y=8~15)
In input mode (IOMCy[1: 0]=00):
00: Analog mode
01: Floating input (reset state)
10: Pull-up/pull-down input
11: Reserved
In output mode (IOMCy[1
:
0]!=00):
00: General-purpose push-pull output
01: General-purpose open-drain output
10: Alternate function push-pull output
11: Alternate function open-drain output
Bit 29: 28
Bit 25: 24
Bit 21: 20
Bit 17: 16
Bit 13: 12
Bit 9: 8
Bit 5: 4
Bit 1: 0
IOMCy
0x0
rw
GPIOx mode configuration (y=8~15)
00: Input mode (reset state)
01: Output mode, large sourcing/sinking strength
10: Output mode, normal sourcing/sinking strength
11: Output mode, normal sourcing/sinking strength
Note: Some port registers have different reset values. For example, some PB pins are JTAG/SWD with
pull-up input by default.
6.3.3
GPIO input data register (GPIOx_IDT) (x=A..F)
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.4
GPIO output data register (GPIOx_ODT) (x=A..F)
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.
As output: it indicates the output status of I/O port.
0: Low
1: High
As input: it indicates the pull-up/pull-down status of I/O
port.
0: Pull-down
1: Pull-up