GD32VF103 User Manual
380
18.
Serial peripheral interface/Inter-IC sound (SPI/I2S)
18.1.
Overview
The SPI/I2S module can communicate with external devices using the SPI protocol or the I2S
audio protocol.
The serial peripheral interface (SPI) provides a SPI protocol of data transmission and
reception function in master or slave mode. Both full-duplex and simplex communication
modes are supported, with hardware CRC calculation and checking.
The inter-IC sound (I2S) supports four audio standards: I2S Phillips standard, MSB justified
standard, LSB justified standard, and PCM standard. I2S works at either master or slave
mode for transmission and reception.
18.2.
Characteristics
18.2.1.
SPI characteristics
Master or slave operation with full-duplex or simplex mode.
Separate transmit and receive buffer, 16 bits wide.
Data frame size can be 8 or 16 bits.
Bit order can be LSB or MSB.
Software and hardware NSS management.
Hardware CRC calculation, transmission and checking.
Transmission and reception using DMA.
SPI TI mode supported.
SPI NSS pulse mode supported.
18.2.2.
I2S characteristics
Master or slave operation for transmission/reception.
Four I2S standards supported: Phillips, MSB justified, LSB justified and PCM standard.
Data length can be 16 bits, 24 bits or 32 bits.
Channel length can be 16 bits or 32 bits.
Transmission and reception using a 16 bits wide buffer.
Audio sample frequency can be 8 kHz to 192 kHz using I2S clock divider.
Programmable idle state clock polarity.
Master clock (MCK) can be output.
Transmission and reception using DMA.