RM0461
Inter-integrated circuit (I2C) interface
Figure 279. Transfer sequence flow for I2C master transmitter for N≤255 bytes
Master
transmission
Master initialization
NBYTES = N
AUTOEND = 0 for RESTART; 1 for STOP
Configure slave address
Set I2C_CR2.START
No
No
I2C_ISR.TXIS
I2C_ISR.NACKF =
=1?
1?
Yes
Yes
Write I2C_TXDR
End
No
NBYTES
transmitted?
Yes
Yes
I2C_ISR.TC =
1?
Set I2C_CR2.START with
No
slave addess NBYTES ...
End
MS19860V2
RM0461 Rev 5
973/1306
1014
Need help?
Do you have a question about the STM32WLEx and is the answer not in the manual?