AT32WB415
Series Reference Manual
2022.04.13
Page 81
Ver 2.00
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 the 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
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, and use pull-up resistor to output 1
In push-pull mode, output register is used to output 0/1
Multiplexed output is enabled when CONF=10 or 11, see section IOMUX for details.
6.2.6
GPIO 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.
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 m ap and reset value s
Register
Offset
Reset value
GPIOx_CFGLR
0x00
0x4444 4444
GPIOx_CFGHR
0x04
0x4444 4444
GPIOx_IDT
0x08
0x0000 XXXX