![GigaDevice Semiconductor GD32F10 Series Скачать руководство пользователя страница 507](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800507.webp)
GD32F10x User Manual
507
I2S slave reception sequence
The reception 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 reception sequence begins when the external master sends the clock
and when the I2S_WS signal indicates a start of the data transfer. 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 immediately after receiving the
last RBNE.
18.4.6.
DMA function
DMA function is the same as SPI mode. The only difference is that the CRC function is not
available in I2S mode.
18.4.7.
I2S interrupts
Status flags
There are four status flags implemented in the SPI_STAT register, including TBE, RBNE,
TRANS and I2SCH. The user can use them to fully monitor the state of the I2S bus.
Transmit buffer empty flag (TBE)
This bit is set when the transmission buffer is empty, the software can write the next data to
the transmission buffer by writing the SPI_DATA register.
Receive buffer not empty flag (RBNE)
This bit is set when reception buffer is not empty, which means that one data is received and
stored in the reception buffer, and software can read the data by reading the SPI_DATA
register.
I2S transmitting on-going flag (TRANS)
TRANS is a status flag to indicate whether the transfer is ongoing or not. It is set and cleared
by hardware and not controlled by software. This flag will not generate any interrupt.
I2S channel side flag (I2SCH)
This flag indicates the channel side information of the current transfer and has no meaning in
PCM mode. In the transmission mode, the I2SCH flag is updated every time TBE changes
from 0 to 1. In the reception mode, the I2SCH flag is updated every time RBNE changes from
0 to 1. This flag will not generate any interrupt.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...