![GigaDevice Semiconductor GD32F20 Series User Manual Download Page 534](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f20-series/gd32f20-series_user-manual_2225801534.webp)
GD32F20x User Manual
534
2.
In order to support address resolution protocol (ARP) (ARPEN=1), the software should
response to HSTSMB flag in SMBus Host Mode (SMBTYPE =1) or DEFSMB flag in
SMBus Device Mode, and implement the function of ARP protocol.
3.
In order to support SMBus Alert Mode, the software should response to SMBALT flag
and implement the related function.
20.3.11.
Status, errors and interrupts
There are several status and error flags in I2C, and interrupt may be asserted from these
flags by setting some register bits (refer to I2C register for detail).
Table 20-2. Event status flags
Event Flag Name
Description
SBSEND
START condition sent (master)
ADDSEND
Address sent or received
ADD10SEND
Header of 10-bit address sent
STPDET
STOP condition detected
BTC
Byte transmission completed
TBE
I2C_DATA is empty when transmitting
RBNE
I2C_DATA is not empty when receiving
Table 20-3. I2C error flags
I2C Error Name
Description
BERR
Bus error
LOSTARB
Arbitration lost
OUERR
Over-run or under-run when SCL stretch is disabled.
AERR
No acknowledge received
PECERR
CRC value doesn’t match
SMBTO
Bus timeout in SMBus mode
SMBALT
SMBus Alert
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...