![GigaDevice Semiconductor GD32E23 Series User Manual Download Page 114](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794114.webp)
GD32E23x User Manual
114
and pull-down), pull-up or pull-down function by GPIO pull-up/pull-down registers
(GPIOx_PUD).
Table 6-1. GPIO configuration table
PAD TYPE
CTLn
OMn
PUDn
GPIO
INPUT
X
Floating
00
X
00
Pull-up
01
Pull-down
10
GPIO
OUTPUT
Push-pull
Floating
01
0
00
Pull-up
01
Pull-down
10
Open-drain
Floating
1
00
Pull-up
01
Pull-down
10
AFIO
INPUT
X
Floating
10
X
00
Pull-up
01
Pull-down
10
AFIO
OUTPUT
Push-pull
Floating
10
0
00
Pull-up
01
Pull-down
10
Open-drain
Floating
1
00
Pull-up
01
Pull-down
10
ANALOG
X
X
11
X
XX
Figure 6-1. Basic structure of of a general-pupose I/O
shows the basic structure of an I/O
Port bit.
Figure 6-1. Basic structure of of a general-pupose I/O
Read
Vss
Output
Control
Register
Write
Read/Write
Alternate Function Output
Alternate Function Input
Input driver
Output driver
Registers
Bit Operate
Analog Input/output
V
dd
Input
Status
Register
I / O pin
ESD
protect
6.3.1.
GPIO pin configuration
During or just after the reset period, the alternative functions are all inactive and the GPIO