GD32W51x User Manual
666
1
TI
Transmit interrupt
This bit is set by hardw are w hen the I2C_TDATA register is empty and the I2C is
ready to transmit data. It is cleared w hen the next data to be sent is w ritten in the
I2C_TDATA register.When SS=1, this bit can be set by softw are, 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 hardw are w hen the I2C_TDATA register is empty. It is cleared
w hen the next data to be sent is w ritten in the I2C_TDATA register. This bit can be
set by softw are in order to empty the I2C_TDATA register.
0: I2C_TDATA is not empty
1: I2C_TDATA is empty
19.4.8.
Status clear register (I2C_STATC)
Address offset: 0x1C
Reset value: 0x0000 0000
This register can be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
SMBALT
C
TIMEOUT
C
PECERR
C
OUERRC
LOSTAR
BC
BERRC
Reserved
STPDET
C
NACKC
ADDSEN
DC
Reserved
w
w
w
w
w
w
w
w
w
Bits
Fields
Descriptions
31:14
Reserved
Must be kept at reset value.
13
SMBALTC
SMBus Alert flag clear.
Softw are can clear the SMBALT bit of I2C_STAT by w riting 1 to this bit
12
TIMEOUTC
TIMEOUT flag clear.
Softw are can clear the TIMEOUT bit of I2C_STAT by w riting 1 to this bit
11
PECERRC
PEC error flag clear.
Softw are can clear the PECERR bit of I2C_STAT by w riting 1 to this bit
10
OUERRC
Overrun/Underrun flag clear.
Softw are can clear the OUERR bit of I2C_STAT by w riting 1 to this bit
9
LOSTARBC
Arbitration Lost flag clear.