GD32F10x User Manual
153
7.
General-purpose and alternate-function I/Os (GPIO
and AFIO)
7.1.
Overview
There are up to 112 general purpose I/O pins (GPIO), named PA0 ~ PA15, PB0 ~ PB15, PC0
~ PC15, PD0 ~ PD15, PE0 ~ PE15, PF0 ~ PF15 and PG0 ~ PG15 for the device to implement
logic input/output functions. Each GPIO port has related control and configuration registers to
satisfy the requirements of specific applications. The external interrupt on the GPIO pins of
the device have related control and configuration registers in the Interrupt/event Controller
Unit (EXTI).
The GPIO ports are pin-shared with other alternative functions (AFs) to obtain maximum
flexibility on the package pins. The GPIO pins can be used as alternative functional pins by
configuring the corresponding registers regardless of the AF input or output pins.
Each of the GPIO pins can be configured by software as output (push-pull or open-drain),
input, peripheral alternate function or analog mode. Each GPIO pin can be configured as pull-
up, pull-down or no pull-up/pull-down. All GPIOs are high-current capable except for analog
mode.
7.2.
Characteristics
Input/output direction control.
Schmitt trigger input function enable control.
Each pin weak pull-up/pull-down function.
Output push-pull/open drain enable control.
Output set/reset control.
External interrupt with programmable trigger edge
– using EXTI configuration registers.
Analog input/output configuration.
Alternate function input/output configuration.
Port configuration lock.
7.3.
Function overview
Each of the general-purpose I/O ports can be configured as 8 modes: analog inputs, input
floating, input pull-down/pull-up, GPIO push-pull/open-drain or AFIO push-pull/open-drain
mode by two GPIO configuration registers (GPIOx_CTL0/GPIOx_CTL1), and two 32-bits data
registers (GPIOx_ISTAT and GPIOx_OCTL).
Table 7-1. GPIO configuration table
details.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...