![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 530](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794530.webp)
GD32E23x User Manual
530
from 0 to 1. This flag will not generate any interrupt.
Error conditions
There are three error flags:
Transmission underrun error flag (TXURERR)
This situation occurs when the transmission buffer is empty when the valid SCK signal starts
in slave transmission mode.
Reception overrun error flag (RXORERR)
This situation occurs when the reception buffer is full and a newly incoming data has been
completely received. When overrun occurs, the data in reception buffer is not updated and
the newly incoming data is lost.
Format error (FERR)
In slave I2S mode, the I2S monitors the I2S_WS signal and an error flag will be set if
I2S_WS toggles at an unexpected position.
I2S interrupt events and corresponding enabled bits are summed up in the
Table 18-10. I2S interrupt
Interrupt flag
Description
Clear method
Interrupt
enable bit
TBE
Transmission buffer empty
Write SPI_DATA register
TBEIE
RBNE
Reception buffer not empty
Read SPI_DATA register
RBNEIE
TXURERR
Transmission underrun error
Read SPI_STAT register
ERRIE
RXORERR
Reception overrun error
Read SPI_DATA register and then
read SPI_STAT register.
FERR
I2S format error
Read SPI_STAT register