GD32W51x User Manual
654
19.3.13.
I2C error and interrupts
The I2C error flags are listed in
Table 19-6. I2C error flags
I2C Error Nam e
Description
BERR
Bus error
LOSTARB
Arbitration lost
OUERR
Overrun/Underrun flag
PECERR
CRC value
doesn’t match
TIMEOUT
Bus timeout in SMBus mode
SMBALT
SMBus Alert
The I2C interrupt events and flags are listed in
Table 19-7. I2C interrupt events
.
Table 19-7. I2C interrupt events
I
nterrupt event
Event flag
Enable control bit
I2C_RDATA is not empty during receiving
RBNE
RBNEIE
Transmit interrupt
TI
TIE
STOP condition detected in slave mode
STPDET
STPDETIE
Transfer complete reload
TCR
TCIE
Transfer complete
TC
Address match
ADDSEND
ADDMIE
Not acknow ledge received
NACK
NACKIE
Bus error
BERR
ERRIE
Arbitration Lost
LOSTARB
Overrun/Underrun error
OUERR
PEC error
PECERR
Timeout error
TIMEOUT
SMBus Alert
SMBALT
19.3.14.
I2C debug mode
When the microcontroller enters the debug mode (Cortex
®
-M33 core halted), the SMBus
timeout either continues to work normally or stops, depending on the I2Cx_HOLD
configuration bits in the DBG module.