GD32A50x User Manual
544
BYTENUM[7:0] bytes have been transferred. It is cleared by software when START
bit or STOP bit is set.
0: Transfer of BYTENUM[7:0] bytes is not completed
1: Transfer of BYTENUM[7:0] bytes is completed
5
STPDET
STOP signal detected in slave mode
This flag is set by hardware when a STOP signal is detected on the bus. It is cleared
by software by setting STPDETC bit and cleared by hardware when I2CEN=0.
0: STOP signal is not detected.
1: STOP signal is detected.
4
NACK
Not Acknowledge flag
This flag is set by hardware when a NACK is received. It is cleared by software by
setting NACKC bit and cleared by hardware when I2CEN=0.
0: ACK is received.
1: NACK is received.
3
ADDSEND
Address received matches in slave mode.
This bit is set by hardware when the received slave address matched with one of
the enabled slave addresses. It is cleared by software by setting ADDSENDC bit
and cleared by hardware when I2CEN=0.
0: Received address not matched
1: Received address matched
2
RBNE
I2C_RDATA is not empty during receiving
This bit is set by hardware when the received data is shift into the I2C_RDATA
register. It is cleared when I2C_RDATA is read.
0: I2C_RDATA is empty
1: I2C_RDATA is not empty, software can read
1
TI
Transmit interrupt
This bit is set by hardware when the I2C_TDATA register is empty and the I2C is
ready to transmit data. It is cleared when the next data to be sent is written in the
I2C_TDATA register.When SS=1, this bit can be set by software, in order to
generate a TI event (interrupt if TIE=1 or DMA request if DENT =1).
0: I2C_TDATA is not empty or the I2C is not ready to transmit data
1: I2C_TDATA is empty and the I2C is ready to transmit data
0
TBE
I2C_TDATA is empty during transmitting
This bit is set by hardware when the I2C_TDATA register is empty. It is cleared
when the next data to be sent is written in the I2C_TDATA register. This bit can be
set by software in order to empty the I2C_TDATA register.
0: I2C_TDATA is not empty
1: I2C_TDATA is empty