GD32F403xx User Manual
458
Pin name
Direction
Description
application.
Slave in hardware NSS mode: NSS input, as a chip select
signal for slave.
Quad-SPI configuration
SPI is in single wire mode by default and enters into Quad-SPI mode after QMOD bit in
SPI_QCTL register is set (only available in SPI0). Quad-SPI mode can only work at master
mode.
Software is able to drive IO2 and IO3 pins high in normal Non-Quad-SPI mode by using
IO23_DRV bit in SPI_QCTL register.
The SPI is connected to external devices through 6 pins in Quad-SPI mode:
Table 19-2. Quad-SPI signal description
Pin Name
Direction
Description
SCK
O
SPI Clock Output
MOSI
I / O
Transmission or Reception Data 0 line
MISO
I / O
Transmission or Reception Data 1 line
IO2
I / O
Transmission or Reception Data 2 line
IO3
I / O
Transmission or Reception Data 3 line
NSS
O
NSS output
19.3.3.
SPI clock timing and data format
CKPL and CKPH bits in SPI_CTL0 register decide the timing of SPI clock and data signal.
The CKPL bit decides the SCK level when idle and CKPH bit decides either first or second
clock edge is a valid sampling edge. These bits take no effect in TI mode.
Figure 19-2. SPI timing diagram in normal mode
SCK (CKPH=0 CKPL=0)
SCK (CKPH=0 CKPL=1)
SCK (CKPH=1 CKPL=0)
SCK (CKPH=1 CKPL=1)
MOSI
MISO
NSS
D[0]
LF=1,FF16=0
D[0]
D[7]
D[7]
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...