GD32F10x User Manual
155
port input status register (GPIOx_ISTAT).
When the GPIO pins are configured as output pins, user can configure the speed of the ports.
And chooses the output driver mode: Push-Pull or Open-Drain mode. The value of the port
output control register (GPIOx_OCTL) is output on the I/O pin.
There is no need to read-then-write when programming the GPIOx_OCTL at bit level, user
can modify only one or several bits in a single atomic APB2 write access by programming
‘
1
’
to the bit operate register (GPIOx_BOP, or for clearing only GPIOx_BC). The other bits will
not be affected.
7.3.2.
External interrupt/event lines
The port can use external interrupt/event lines only if it is configured in input mode.
7.3.3.
Alternate functions (AF)
When the port is configured as AFIO (set CTLy bits to
“
0b10
”
or
“
0b11
”
, and set MDy bits to
“
0b01
”
,
“
0b10
”
, or
“
0b11
”
, which is in GPIOx_CTL0/GPIOx_CTL1 registers), the port is used
as peripheral alternate functions. The detail alternate function assignments for each port are
in the device datasheet.
7.3.4.
Input configuration
When GPIO pin is configured as Input:
The schmitt trigger input is enabled.
The weak pull-up and pull-down resistors could be chosen.
Every APB2 clock cycle the data present on the I/O pin is got to the port input status
register.
Disable the output buffer.
Figure 7-2. Basic structure of Input configuration
shows the input configuration.
Figure 7-2. Basic structure of Input configuration
Alternate Function Input
Input driver
Input
Status
Register
Vss
V
dd
I / O pin
ESD
protect
Read
7.3.5.
Output configuration
When GPIO pin is configured as output:
The schmitt trigger input is enabled.
Содержание 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 ...