
AT32F413
Series Reference Manual
2022.06.27
Page 85
Rev 2.00
6.2.2
GPIO reset status
After power-on or system reset, all pins are configured as floating input mode except JATG-related pins.
JTAG pin configuration are as follows:
PA15/JTDI, PA13/JTMS and PB4/JNTRST in pull-up input mode;
PA14/JTCK in pull-down input mode;
PB3/TDO in floating input mode.
6.2.3
General-purpose input configuration
Mode
IOFC
HDRV
IOMC[1]
IOMC[0]
ODT register
Floating input
01
000
Unused
Pull-down input
10
0
Pull-up input
1
When I/O port is configured as input:
Get I/O states by reading input data register.
Floating input, pull-up/pull-down input is configurable
Schmitt-trigger input is activated.
Output is disabled.
Note: In floating input mode, it is recommended to set the unused pins as analog input mode in order to
avoid leakage caused by interference from unused pins in a complex environment.
6.2.4
Analog input/output configuration
Mode
IOFC
HDRV
IOMC[1]
IOMC[0]
ODT register
Analog input/output
00
000
Unused
When I/O port is configured as analog input:
Schmitt-trigger input is disabled.
Digital input/output is disabled.
Without any pull-up/pull-down resistor.
6.2.5
General-purpose output configuration
Mode
IOFC
HDRV
IOMC[1]
IOMC[0]
ODT register
Push-Pull
00
000/100: Input mode
001: Output mode, large sourcing/sinking strength
010: Output mode, normal sourcing/sinking strength
011: Output mode, normal sourcing/sinking strength
1xx: Output mode, Maximum sourcing/sinking strength
0 or 1
Open-Drain
01
0 or 1
When I/O port is configured as output:
Schmitt-trigger input is enabled.
Output through output register.
Pull-up/pull-down resistors are disabled.
In open-drain mode, forced output 0, use pull-up resistor to output 1.
In push-pull mode, output register is used to output 0/1.
When CONF=10 or 11, it is used as a multiplexed output, refer to IOMUX for more details.
6.2.6
I/O port protection
Locking mechanism can freeze the I/O configuration for the purpose of protection. When LOCK is
applied to a port bit, its configuration cannot be modified until the next reset or power on.