![GigaDevice Semiconductor GD32F20 Series User Manual Download Page 140](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f20-series/gd32f20-series_user-manual_2225801140.webp)
GD32F20x User Manual
140
7.4.
Remapping function I/O and debug configuration
7.4.1.
Introduction
In order to expand the flexibility of the GPIO or the usage of peripheral functions, each I/O pin
can be configured to have up to four different functions by setting the AFIO Port Configuration
Register (AFIO_PCF0/AFIO_PCF1). Suitable pinout locations can be selected by using the
peripheral IO remapping function. Additionally, various GPIO pins can be selected to be the
EXTI interrupt line by setting the relevant EXTI Source Selection Register (AFIO_EXTISSx)
to trigger an interrupt or event.
7.4.2.
Main features
APB slave interface for register access.
EXTI source selection.
Each pin has up to four alternative functions for configuration.
7.4.3.
JTAG/SWD alternate function remapping
The debug interface signals are mapped on the GPIO ports as shown in table below.
Table 7-2. Debug interface signals
Alternate function
GPIO port
JTMS / SWDIO
PA13
JTCK / SWCLK
PA14
JTDI
PA15
JTDO / TRACESWO
PB3
NJTRST
PB4
TRACECK
PE2
TRACECK0
PE3
TRACECK1
PE4
TRACECK2
PE5
TRACECK3
PE6
To reduce the number of GPIOs used to debug, user can configure SWJ_CFG [2:0] bits in
the AFIO_PCF0 to different value. Refer to table below.
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...