GD32W51x User Manual
236
GPIOx_AFSELz (z=0, 1). It allows the I/O configuration to be frozen by the 32-bit locking
register (GPIOx_LOCK). When the special LOCK sequence has 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
recommended to be used in the configuration of driving a power module
.
8.3.10.
GPIO single cycle toggle function
GPIO could toggle the I/O output level in single AHB cycle by writing 1 to the corresponding
bit of GPIOx_TG register. The output signal frequency could up to the half of the AHB clock.
8.4.
TrustZone GPIO security
If TZEN=1
,
after reset, all GPIO ports are secure, secure code can use GPIOx_SCFG register
to
configure GPIO pin secure state, once one pin set to secure its corresponding configuration
bits for alternate function, control bits, mode selection, reset/set bits, lock bits, I/O data,are
secure.
show GPIO secure state
.
Table 8-2. GPIO secure state
GPIOx_SCFG
Register
Bit/Bits
Secure state
SCFGy = 1
GPIOx_CTL
CTLy[1:0]
Non-secure read is
zero, w rite w ill ignore
GPIOx_OMODE
OMy
GPIOx_OSPD
OSPDy[1:0]
GPIOx_PUD
PUDy[1:0]
GPIOx_ISTAT
ISTATy
GPIOx_OCTL
OCTLy
GPIOx_BOP
BOPy/CRy
GPIOx_LOCK
LKy
GPIOx_AFSEL0
SELy[3:0]
GPIOx_AFSEL1
GPIOx_BC
CRy
GPIOx_TG
TGy
Note:
GPIOx, x= A…C, and y=0..15
If one pin of GPIO is used for peripheral, whether the pin can be used is determined with the
secure state of GPIO pin and peripheral. If peripheral is secure but GPIO pin is non-secure
then the pin can not use, read/write is all zero; if peripheral is non-secure but GPIO pin is
secure then the pin can use; for analog peripheral like ADC, the secure state must to be same
or it will block between peripheral and GPIO pin.
Содержание GD32W515 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32W51x Arm Cortex M33 32 bit MCU User Manual Revision 1 0 Nov 2021 ...
Страница 66: ...GD32W51x User Manual 66 Bits Fields Descriptions 31 0 UNIQUE_ID 95 64 Unique device ID ...
Страница 389: ...GD32W51x User Manual 389 The FWDGT timeout can be more accurate by calibrating the IRC32K ...
Страница 504: ...GD32W51x User Manual 504 ...
Страница 710: ...GD32W51x User Manual 710 ...