
AT32F413
Series Reference Manual
2022.06.27
Page 86
Rev 2.00
6.3 GPIO registers
lists GPIO register map and their reset values. These peripheral registers must be
accessed by words (32 bits).
Table 6-1
GPIO register map and reset value s
Register
Offset
Reset value
GPIOx_CFGLR
0x00
0x4444 4444
GPIOx_CFGHR
0x04
0x4444 4444
GPIOx_IDT
0x08
0x0000 XXXX
GPIOx_ODT
0x0C
0x0000 0000
GPIOx_SCR
0x10
0x0000 0000
GPIOx_CLR
0x14
0x0000 0000
GPIOx_WPR
0x18
0x0000 0000
GPIOx_HDRV
0x3C
0x0000 0000
6.3.1
GPIO configuration register low (GPIOx_CFGLR) (x=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=0~7)
In input mode (IOMCy[1: 0]=00):
00: Analog mode
01: Floating input (after reset)
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=0~7)
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 PA pins are JTAG/SWD with
pull-up input by default.