
Rev. 1.00
174 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
9
Alternate Function Input/Output Control Unit (AFIO)
GPIO Port x Configuration High Register – GPxCFGHR, x = A, B, C, D
This high register specifies the alternate function of GPIO Port x, x = A, B, C, D
Offset:
0x024, 0x02C, 0x034, 0x03C
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
PxCFG15
PxCFG14
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
23
22
21
20
19
18
17
16
PxCFG13
PxCFG12
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
15
14
13
12
11
10
9
8
PxCFG11
PxCFG10
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
7
6
5
4
3
2
1
0
PxCFG9
PxCFG8
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
Bits
Field
Descriptions
[31:0]
PxCFGn[3:0]
Alternate function selection for port x pin n (n = 8 ~ 15)
0000: Port x pin n is selected as AF0
0001: Port x pin n is selected as AF1
.
.
1110: Port x pin n is selected as AF14
1111: Port x pin n is selected as AF15
If the pin is selected as unavailable item which is noted as “N/A” in the “Alternate
Function Mapping” table of the device datasheet, this pin will be defined as
default alternate function. Refer to the “Alternate Function Mapping” table in the
device datasheet for detailed mapping of the alternate function I/O pins.