![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 181](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782181.webp)
GD32A50x User Manual
181
8.3.7.
Analog configuration
When GPIO pin is used as analog configuration:
The weak pull-up and pull-down resistors are disabled.
The output buffer is disabled.
The schmitt trigger input is disabled.
The port input status register of
this I/O port bit is “0”.
Figure 8-4. Basic structure of Analog configuration
shows the analog configuration.
Figure 8-4. Basic structure of Analog configuration
Analog ( Input / Output )
I/O pin
ESD
protection
8.3.8.
Alternate function (AF) configuration
To suit for different device packages, the GPIO supports some alternate functions mapped to
some other pins by software.
When be configured as alternate function:
The output buffer is
enabled in open-drain or push-pull configuration.
The output buffer is driven by the peripheral.
The schmitt trigger input is enabled.
The weak pull-up and pull-down resistors could be chosen.
The I/O pin data is stored into the port input status register every AHB clock.
A read access to the port input status register gets the I/O state.
A read access to the port output control register gets the last written value.
Figure 8-5. Basic structure of Alternate function configuration
shows the alternate
function configuration.