GD32F403xx User Manual
140
line source by setting the relevant EXTI source selection register (AFIO_EXTISSx) to trigger
an interrupt or event.
8.4.2.
Main features
◼
EXTI source selection.
◼
Each pin has up to four alternative functions for configuration.
8.4.3.
JTAG/SWD alternate function remapping
The debug interface signals are mapped on the GPIO ports as shown in table below.
Table 8-2. Debug interface signals
GPIO port
Alternate function
PA13
JTMS / SWDIO
PA14
JTCK / SWCLK
PA15
JTDI
PB3
JTDO / TRACESWO
PB4
NJTRST
PE2
TRACECK
PE3
TRACED0
PE4
TRACED1
PE5
TRACED2
PE6
TRACED3
To reduce the number of GPIOs used for debug, the user can configure SWJ_CFG [2:0] bits
in the AFIO_PCF0 to different value. Refer to table below.
Table 8-3. Debug port mapping and Pin availability
SWJ_CFG
[2:0]
JTAG-DP and SW-DP
Pin availability
PA13
PA14
PA15
PB3
PB4
000
JTAG-DP Enabled and SW-DP
Enabled (Reset state)
X
X
X
X
X
001
JTAG-DP Enabled and SW-DP
Enabled but without NJTRST
X
X
X
X
√
010
JTAG-DP Disabled and SW-
DP Enabled
X
X
√
√
√
100
JTAG-DP Disabled and SW-
DP Disabled
√
√
√
√
√
Other
Forbidden
1.
Can
’t released if using asynchronous trace.
2.
“
√
” Indicates that the corresponding pin can be used as a general-purpose I/O.
3.
“
X
” Indicates that the corresponding pin can’t be used as a general-purpose I/O.
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...