
Rev. 1.00
144 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
9
Alternate Function Input / Output Control Unit (AFIO)
9
Alternate Function Input / Output Control Unit (AFIO)
GPIO x Configuration Low Register – GPxCFGLR, x = A, B, C
This low register specifies the alternate function of GPIO Port x, x = A, B, C.
Offset:
0x020, 0x028, 0x030
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
PxCFG7
PxCFG6
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
PxCFG5
PxCFG4
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
PxCFG3
PxCFG2
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
PxCFG1
PxCFG0
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 = 0 ~ 7)
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” item in the “Alternate
Function Mapping” table of the device datasheet. This pin will be defined as default
alternate function. Please refer to the “Alternate Function Mapping” table in the
device datasheet for the detailed mapping of the alternate function I/O pins.