
AT32F413
Series Reference Manual
2022.06.27
Page 84
Rev 2.00
6
General-purpose I/Os (GPIOs)
6.1 Introduction
AT32F413 support up to 55 bidirectional I/O pins, which are grouped as five categories, namely PA, PB,
PC, PD and PF. Each of the GPIO group provides up to 16 I/O pins that feature communication, control
and data collection. In addition, their main features also include:
Supports general-purpose I/O (GPIO) or multiplexed function I/O (IOMUX), which will be detailed in
this chapter and the subsequent sections
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’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 flexibly. However, I/O port registers must be accessed by 32-bit
words (half-word/byte access is not supported).
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
A
H
B
b
u
s
G
P
IO
c
o
n
tr
o
lle
r
Single IO
Analog
module