GD32F10x User Manual
479
0: No bus error
1: A bus error detected
7
TBE
I2C_DATA is empty during transmitting
This bit is set by hardware after it moves a byte from I2C_DATA to shift register and
cleared by writing a byte to I2C_DATA. If both the shift register and I2C_DATA are
empty, writing I2C_DATA won’t clear TBE (refer to Programming Model for detail).
0: I2C_DATA is not empty
1: I2C_DATA is empty, software can write
6
RBNE
I2C_DATA is not empty during receiving
This bit is set by hardware after it moves a byte from shift register to I2C_DATA
and cleared by reading I2C_DATA. If both BTC and RBNE are asserted, reading
I2C_DATA won’t clear RBNE because the shift register’s byte will be moved to
I2C_DATA immediately.
0: I2C_DATA is empty
1: I2C_DATA is not empty, software can read
5
Reserved
Must be kept at reset value.
4
STPDET
STOP signal is detected in slave mode
This bit is set by hardware and cleared by reading I2C_STAT0 and then writing
I2C_CTL0.
0: STOP signal not detected in slave mode
1: STOP signal detected in slave mode
3
ADD10SEND
Header of 10-bit address is sent in master mode
This bit is set by hardware and cleared by reading I2C_STAT0 and writing
I2C_DATA.
0: No header of 10-bit address is sent in master mode
1: Header of 10-bit address is sent in master mode
2
BTC
Byte transmission is completed.
If a byte is already received in shift register but I2C_DATA is still full in receiving
mode or a byte is already sent out from shift register but I2C_DATA is still empty in
transmitting mode, the BTC flag is asserted if SCL stretching enabled.
This bit is set by hardware and cleared by 3 ways as follow:
1. Software clearing: reading I2C_STAT0 followed by reading or writing I2C_DATA
2. Hardware clearing: sending the STOP signal or START signal
3. Bit 0 (I2CEN bit) of the I2C_CTL0 is reset.
0: BTC not asserted
1: BTC asserted
1
ADDSEND
Address is sent and ACK is received in master mode or address is received and
matches with its own address in slave mode.
This bit is set by hardware and cleared by reading I2C_STAT0 and reading
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...