GD32F10x User Manual
158
7.3.9.
GPIO locking function
The locking mechanism allows the IO configuration to be protected.
The protected registers are GPIOx_CTL0, GPIOx_CTL1. It allows the I/O configuration to be
frozen by the 32-bit locking register (GPIOx_LOCK). When the special LOCK sequence has
been occurred on LKK bit in GPIOx_LOCK register and the LKy bit is set in GPIOx_LOCK
register, the corresponding port is locked and the corresponding port configuration cannot be
modified until the next reset. It should be recommended to be used in the configuration of
driving a power module.
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 up to four different functions by setting the AFIO Port Configuration
Register (AFIO_PCF0/AFIO_PCF1). Suitable pinout locations can be selected 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
Pin Name
Function description
PE2
TRACECK
PE3
TRACECK0
PE4
TRACECK1
PE5
TRACECK2
PE6
TRACECK3
PA13
JTMS / SWDIO
PA14
JTCK / SWCLK
PA15
JTDI
PB3
JTDO / TRACESWO
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...