GD32F10x User Manual
483
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 half-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.
18.2.2.
I2S characteristics
Master or slave operation with transmission / 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.
Master clock (MCK) can be output.
Transmission and reception using DMA.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...