GD32A50x User Manual
578
Transmission underrun error flag (TXURERR)
TXURERR will be set when the transmit buffer is empty if the valid SCK signal starts in slave
transmission mode.
Reception overrun error flag (RXORERR)
This situation 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
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 enable bits are summed up in the
Table 21-10. I2S interrupt
Interrupt flag
Description
Clear method
Interrupt
enable bit
TBE
Transmit buffer empty
Write SPI_DATA register
TBEIE
RBNE
Receive 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