
Rev. 1.00
123 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
7 Reset Control Unit (RSTCU)
8 General Purpose I/O (GPIO)
8
8
General Purpose I/O (GPIO)
Introduction
There are up to 40 General Purpose I/O ports, GPIO, named PA0 ~ PA15, PB0 ~ PB15 and PC0
~ PC7 for the HT32F54231/HT32F54241 devices and up to 54 General Purpose I/O ports, GPIO,
named PA0 ~ PA15, PB0 ~ PB15, PC0 ~ PC15 and PD0 ~ PD5 for the HT32F54243/HT32F54253
devices to implement the logic input/output functions. Each of the GPIO ports has related control
and configuration registers to satisfy the requirement of specific applications. The actual available
General Purpose I/O port numbers are dependent on the device specification and package type. Refer
to the device datasheet for detailed information.
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.
The external interrupts on the GPIO pins of the device have related control and configuration
registers in the External Interrupt Control Unit (EXTI).
PxDOUTn
PxRSTn
PxSETn
PxDINn
PxINENn
PxDIRn
PxDVn
PxODn
PxPDn
PxPUn
To IOPAD PUN
To IOPAD PDN
To IOPAD DS
To IOPAD OEN
To IOPAD IEN
IEN
AFIO
OEN
AFIO
C
IOPAD
To AFIO MUX
Bus Interface
Figure 22. GPIO Block Diagram