AT32WB415
Series Reference Manual
2022.04.13
Page 127
Ver 2.00
11.4.5 I
2
C interrupt requests
The following table lists all the I
2
C interrupt requests.
Interrupt event
Event flag
Enable control bit
Start condition sent (Host)
STARTF
EVTIEN
Address sent (host) or address matched (slave)
ADDR7F
10-bit address head sent (host)
ADDRHF
Data transfer complete
TDC
Stop condition received (slave)
STOPF
Transmit data buffer empty
TDBE
EVTIEN and
DATAIEN
Receive data buffer full
RDBF
SMBus alert
ALERTF
ERRIEN
Timeout error
TMOUT
PEC error
PECERR
Overload/underload
OUF
Acknowledge failure
ACKFAIL
Arbitration lost
ARLOST
Bus error
BUSERR
11.4.6 I
2
C debug mode
When the microcontroller enters debug mode (Cortex
TM
-M4 halted), the SMBUS timeout either continues
to work or stops, depending on the I2Cx_SMBUS_TIMEOUT configuration bit in the DEBUG module.
11.5 I
2
C registers
These peripheral registers must be accessed by words (32 bits).
Table 11-1 I
2
C register map and reset values
Register
Offset
Reset value
I2C_CTRL1
0x00
0x0000
I2C_CTRL2
0x04
0x0000
I2C_OADDR1
0x08
0x0000
I2C_OADDR2
0x0C
0x0000
I2C_DT
0x10
0x0000
I2C_STS1
0x14
0x0000
I2C_STS2
0x18
0x0000
I2C_CLKCTRL
0x1C
0x0000
I2C_TMRISE
0x20
0x0002