RM0366
Figure 272. Transfer sequence flow for SMBus target receiver N bytes + PEC
Inter-integrated circuit interface (I2C)
SMBus target
reception
Target initialization
No
I2C_ISR.ADDR
= 1?
Yes
Read ADDCODE and DIR in I2C_ISR
I2C_CR2.NBYTES = 1, RELOAD = 1
PECBYTE = 1
Set I2C_ICR.ADDRCF
I2C_ISR.RXNE =1?
I2C_ISR.TCR = 1?
Yes
Read I2C_RXDR.RXDATA
Program I2C_CR2.NACK = 0
I2C_CR2.NBYTES = 1
N = N - 1
N = 1?
Yes
Read I2C_RXDR.RXDATA
Program RELOAD = 0
NACK = 0 and NBYTES = 1
No
I2C_ISR.RXNE
= 1?
Yes
Read I2C_RXDR.RXDATA
End
RM0366 Rev 5
No
No
SCL
stretched
MSv19868V3
689/874
711
Need help?
Do you have a question about the STM32F301 6 Series and is the answer not in the manual?