Figure 286. Transfer Sequence Flowchart For Slave Receiver With Nostretch=1; Figure 287. Transfer Bus Diagrams For I2C Slave Receiver - ST STM32WL5 Series Reference Manual

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Hide thumbs Also See for STM32WL5 Series:
Table of Contents

Advertisement

Inter-integrated circuit (I2C) interface

Figure 286. Transfer sequence flowchart for slave receiver with NOSTRETCH=1

Example I2C slave receiver 3 bytes, NOSTRETCH=0:
RXNE
EV1: ADDR ISR: check ADDCODE and DIR, set ADDRCF
EV2: RXNE ISR: rd data1
EV3 : RXNE ISR: rd data2
EV4: RXNE ISR: rd data3
Example I2C slave receiver 3 bytes, NOSTRETCH=1:
RXNE
EV1: RXNE ISR: rd data1
EV2: RXNE ISR: rd data2
EV3: RXNE ISR: rd data3
EV4: STOPF ISR: set STOPCF
1078/1461
I2C_ISR.RXNE
=1?
Yes
Read I2C_RXDR.RXDATA

Figure 287. Transfer bus diagrams for I2C slave receiver

ADDR
Address
data1
A
EV1
RXNE
Address
data 1
A
Slave reception
Slave initialization
No
RXNE
RXNE
data2
A
A
EV2
RXNE
RXNE
data 2
data 3
A
A
EV1
EV2
RM0453 Rev 1
No
I2C_ISR.STOPF
=1?
Yes
Set I2C_ICR.STOPCF
RXNE
data3
A
EV3
EV4
A
EV3
RM0453
MS19856V2
legend:
transmission
reception
SCL stretch
legend:
transmission
reception
SCL stretch
MS19857V2

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF