AT32F425
Series Reference Manual
2022.03.30
Page 84
Ver 2.01
6
GPIOs and IOMUX
6.1
Introduction
AT32F425 series supports up to 55 bidirectional I/O pins, namely PA0-PA15, PB0-PB15, PC0-PC15,
PD2, PF0-PF1, and PF4-PF7. Each of these pins features communication, control and data collection.
In addition, their main features also include:
Supports general-purpose I/O (GPIO) or multiplexed function I/O (IOMUX)
Each pin can be configured by software as floating input, pull-up/pull-down input, analog
input/output, push-pull/open-drain output, multiplexed push-pull/open-drain output
Each pin with individual weak pull-up/pull-down capability
Each pin’s output drive capability and output signal slope is configureable by software
Each pin can be configured as external interrupt input
Each pin can be locked
6.2
Function overview
6.2.1
GPIO structure
Each of the GPIO pins can be configured by software as four input modes (floating, pull-up/pull-down
and analog input) and four output modes (open-drain, push-pull, alternate function push-pull/open-drain
output)
Each I/O port bit can be programmed freely. However, I/O port registers must be accessed by half words
or bytes.
Figure 6-1 GPIO basic structure
IO
ESD
protect
SMT trigger
PU
PD
output data
output enable
input enable
input data
push/pull
strength control
analog input/output
AH
B
b
u
s
G
PI
O
co
n
tro
lle
r
Single IO
Analog
module