Inter-integrated circuit (I2C) interface
32.6
I2C interrupts
The table below gives the list of I2C interrupt requests.
Interrupt
Interrupt
acronym
event
Receive buffer
not empty
Transmit buffer
interrupt status
Stop detection
interrupt flag
Transfer
Complete
Reload
I2C_EV
Transfer
complete
Address
matched
NACK
reception
I2C
Bus error
Arbitration loss
Overrun/Under
run
I2C_ER
PEC error
Timeout/t
error
SMBus Alert
1. The ADDR match event can wake up the device from Stop mode only if the I2C instance supports the Wakeup from Stop
mode feature. Refer to
980/1390
Table 177. I2C Interrupt requests
Event
flag
control bit
RXNE
TXIS
STOPF
TCR
TC
ADDR
NACKF
BERR
ARLO
OVR
PECERR
LOW
TIMEOUT
ALERT
Section 32.3: I2C
implementation.
Enable
Interrupt clear
method
Read I2C_RXDR
RXIE
register
Write I2C_TXDR
TXIE
register
Write
STOPIE
STOPCF=1
Write I2C_CR2
with
NBYTES[7:0] ≠ 0
TCIE
Write START=1
or STOP=1
Write
ADDRIE
ADDRCF=1
Write
NACKIE
NACKCF=1
Write
BERRCF=1
Write
ARLOCF=1
Write OVRCF=1
ERRIE
Write
PECERRCF=1
Write
TIMEOUTCF=1
Write
ALERTCF=1
RM0444 Rev 5
Exit the
Exit the
Sleep
Stop
mode
mode
No
Yes
(1)
Yes
No
Yes
No
RM0444
Exit the
Standby
modes
No
No
Need help?
Do you have a question about the STM32G0 1 Series and is the answer not in the manual?
Questions and answers