![GigaDevice Semiconductor GD32F10 Series Скачать руководство пользователя страница 157](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800157.webp)
GD32F10x User Manual
157
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 when input.
The I/O pin data is stored into the port input status register every APB2 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 7-5. Basic structure of Alternate function configuration
function configuration.
Figure 7-5. Basic structure of
Alternate function configuration
Vss
Input driver
Output driver
V
dd
I / O pin
ESD
protect
Alternate Function Output
Alternate Function Input
7.3.8.
IO pin function selection
Each IO pin can implement many functions, each function selected by GPIO registers.
GPIO:
Each IO pin can be used for GPIO input function by configuring MDy bits to 0b00 in
GPIOx_CTL0/GPIOx_CTL1 registers. And set output function by configuring MDy bits to 0b01,
0b10, or 0b11 and configuring CTLy bits of corresponding port in GPIOx_CTL0/GPIOx_CTL1
register to 0b00 (for GPIO push-pull output) or 0b01 (for GPIO open-drain output).
Alternate function:
Each IO pin can be used for AF input function by configuring MDy bits to 0b00 in
GPIOx_CTL0/GPIOx_CTL1 registers. And set output function by configuring MDy bits to 0b01,
0b10, or 0b11 and configuring CTLy bits of corresponding port in GPIOx_CTL0/GPIOx_CTL1
register to 0b10 (for AF push-pull output) or 0b11 (for AF open-drain output).
Содержание 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 ...