
AT32F413
Series Reference Manual
2022.06.27
Page 90
Rev 2.00
7.2.2
Multiplexed input configuration
When I/O ports are configured as multiplexed function input:
Get I/O pin state by reading input data registers
The pin be configured as floating input, pull-up or pull-down input
Schmitt-trigger input is activated.
Pin output is disabled.
Table 7-1
IOMUX 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
7.2.3
Multiplexed output or bidirectional multiplexed
configuration
When an I/O port is configured as MUX output or a bidirectional MUX:
I/O pin output depends on the peripherals.
Schmitt-trigger input is activated.
Pull-up/pull-down resistor is disabled.
If the I/O pin is set as several MUX outputs by mistake, the pin output depends on map priority, refer
to next section for details.
In open-drain mode, get an I/O port state by reading input data register
In push-pull mode, get an I/O port state by reading input data register
The MUX functions of some peripherals can be remapped to different pins. Therefore, it is possible to
select the number of the desired peripheral IOMUX functions in different packages. Pin mapping is
achieved by setting the IOMUX_REMAP and IOMUX_REMAPx registers (x=2,3…8).
Table 7-2
IOMUX output configuration
Mode
IOFC
HDRV
IOMC[1]
IOMC[0]
Push-Pull
10
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
Open-Drain
11
Note: For MUX function output or bidirectional MUX function, IOMC[1: 0] > 00 must be met.
7.2.4
Peripheral multiplexed function configuration
When IOMUX function is used:
To use a peripheral pin in MUX output, it is configured as multiplexed push-pull/open-drain output.
To use a peripheral pin in MUX input, it is configured as floating input/pull-up/pull-down input.
For ADC peripherals, the pins of analog channels should be configured as analog input/output mode.
For I2C peripherals that intend to use pins as bidirectional functions, open-drain mode is required.
7.2.5
IOMUX map priority
When several peripheral MUX functions are mapped to the same pin, the priorirty below should be
respected:
Hardware preemption
JTAG debug port
Non-timer peripherals has priority over timer peripherals
No priority applied among several non-timer peripherals, MUX function is overlapped to the same
pin