![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 154](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630154.webp)
www.geehy.com Page 153
Figure 16 I/O Structure in Multiplexing Mode
Output
control
Push-pull, open-
drain, disable
P-MOS
N-MOS
I/O pin
TTL Schottky
trigger
Multiplexing function output
Multiplexing function input
V
SS
V
DD
V
DD
V
SS
External interrupt/wake-up line
All GPIO ports have external interrupt function. If you want to use external
interrupt line, the port must be configured as input mode.
Bit set and bit clear
Software does not need to disable interrupt when programming some bits of
GPIOx_IDATA. (By setting the bit to be changed in GPIOx_BSC and BSC
registers to 1, the function of changing one or more bits in AHB1 write operation
can be realized.
GPIO locking function
Locking function can be used in power driver module. The locking mechanism
of GPIO can protect the configuration of I/O port. I/O configuration can be
locked by configuring the lock register (GPIOx_LOCK). When a port bit
executes the locking program, the configuration of port bit cannot be modified
before the next reset.
OSC32_IN/OSC32_OUT pin
Only when LSECLK oscillator is turned off, can OSC32_IN and OSC32_OUT
pins be used as general-purpose PC14 I/O and PC15 I/O. It is controlled by
RCC_BDCTRL[LSEEN] bit. The priority of LSECLK is higher than GPIO
function.
OSC_IN/OSC_OUT pin
Only when HSECLK oscillator is turned off, can OSC_IN and OSC_OUT pins be
used as general-purpose PH0 I/O and PH1 I/O. It is controlled by
RCC_BDCTRL[HSEEN] bit. The priority of HSECLK is higher than GPIO
function.