Download Print this page

ST STM32L4+ Series Reference Manual page 1700

Hide thumbs Also See for STM32L4+ Series:

Advertisement

Inter-integrated circuit (I2C) interface
49.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
1700/2301
Table 349. I2C Interrupt requests
Event
flag
control bit
RXNE
TXIS
STOPF
TCR
TC
ADDR
NACKF
BERR
ARLO
OVR
PECERR
LOW
TIMEOUT
ALERT
Section 49.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
RM0432 Rev 6
Exit the
Exit the
Sleep
Stop
mode
mode
No
Yes
(1)
Yes
No
Yes
No
RM0432
Exit the
Standby
modes
No
No

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32L4+ Series and is the answer not in the manual?