GD32F20x User Manual
544
21.
Serial peripheral interface/Inter-IC sound (SPI/I2S)
21.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. Quad-SPI master mode
is also supported in SPI0.
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.
21.2.
Characteristics
21.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 first or MSB first.
Software and hardware NSS management.
Hardware CRC calculation, transmission and checking.
Transmission and reception using DMA.
Quad-SPI configuration available in master mode (only in SPI0).
21.2.2.
I2S characteristics
Master or slave operation with transmission or reception mode.
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.
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...