![GigaDevice Semiconductor GD32F20 Series Скачать руководство пользователя страница 570](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f20-series/gd32f20-series_user-manual_2225801570.webp)
GD32F20x User Manual
570
In order to switch off I2S, it is mandatory to clear the I2SEN bit immediately after receiving
the last RBNE.
21.9.4.
DMA function
DMA function is the same as SPI mode. The only difference is that the CRC function is not
available in I2S mode.
21.10.
I2S interrupts
21.10.1.
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 transmit buffer is empty, the software can write the next data to the
transmit buffer by writing the SPI_DATA register.
Receive buffer not empty flag (RBNE)
This bit is set when receive buffer is not empty, which means that one data is received and
stored in the receive 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 on-going or not. It is set and cleared
by internal hardware and not controlled by software. This flag
doesn’t 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. It is updated when TBE rises in transmission mode or RBNE rises in reception
mode. This flag
doesn’t generate any interrupt.
21.10.2.
Error conditions
There are two error conditions:
Transmission Underrun Error Flag (TXURERR)
This condition occurs when the transmit buffer is empty when the valid SCK signal starts in
slave transmission mode.
Reception Overrun Error Flag (RXORERR)
This condition occurs when the receive buffer is full and a newly incoming data has been
completely received. When overrun occurs, the data in receive buffer is not updated and the
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...