Figure 222. Transfer Sequence Flowchart For Smbus Slave Receiver N Bytes + Pec - STMicroelectronics STM32F05 series Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0091

Figure 222. Transfer sequence flowchart for SMBus slave receiver N Bytes + PEC

SMBus slave
reception
Slave initialization
No
I2Cx_ISR.ADDR =
1?
Yes
Read ADDCODE and DIR in I2Cx_ISR
I2Cx_CR2.NBYTES = 1, RELOAD =1
PECBYTE=1
Set I2Cx_ICR.ADDRCF
I2Cx_ISR.RXNE =1?
I2Cx_ISR.TCR = 1?
Yes
Read I2Cx_RXDR.RXDATA
Program I2Cx_CR2.NACK = 0
I2Cx_CR2.NBYTES = 1
N = N - 1
N = 1?
Yes
Read I2Cx_RXDR.RXDATA
Program RELOAD = 0
NACK = 0 and NBYTES = 1
No
I2Cx_ISR.RXNE
=1?
Yes
Read I2Cx_RXDR.RXDATA
End
Doc ID 018940 Rev 1
Inter-integrated circuit (I
No
No
2
C) interface
SCL
stretched
MS19868V1
509/742

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F05 series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents