GD32F10x User Manual
506
Figure 18-46. I2S master reception disabling sequence
If DTLEN == 2b'00&&CHLEN ==
2b'1 && I2SSTDSEL ==2b'10 ?
Start
YES
Finish
Wait for the second last RBNE
Wait 17 I2S CK clock (clock on
I2S_CK pin) cycles
Clear the I2SEN bit
No
If DTLEN == 2b'00&&CHLEN ==
2b'1 && I2SSTDSEL !=2b'10 ?
Wait for the last RBNE
Wait one I2S clock cycle
Wait for the second last RBNE
Wait one I2S clock cycle
No
YES
I2S slave transmission sequence
The transmission sequence in slave mode is similar to that in master mode. The differences
between them are described below.
In slave mode, the slave has to be enabled before the external master starts the
communication. The transmission sequence begins when the external master sends the clock
and when the I2S_WS signal requests the transfer of data. The data has to be written to the
SPI_DATA register before the master initiates the communication. Software should write the
next audio data into SPI_DATA register before the current data finishes. Otherwise,
transmission underrun error occurs. The TXURERR flag is set and an interrupt may be
generated if the ERRIE bit in the SPI_CTL1 register is set. In this case, it is mandatory to
disable and enable I2S to resume the communication. In slave mode, I2SCH is sensitive to
the I2S_WS signal coming from the external master.
In order to disable I2S, it is mandatory to clear the I2SEN bit after the TBE flag is high and
the TRANS flag is low.
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 ...