Figure 293. Transfer Sequence Flowchart For I2C Master Transmitter For N>255 Bytes - 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

RM0453
Figure 293. Transfer sequence flowchart for I2C master transmitter for N>255 bytes
No
I2C_ISR.NACKF
= 1?
Yes
End
Set I2C_CR2.START
with slave addess
NBYTES
...
End
Inter-integrated circuit (I2C) interface
Master
transmission
Master initialization
NBYTES = 0xFF; N=N-255
RELOAD = 1
Configure slave address
Set I2C_CR2.START
I2C_ISR.TXIS
Yes
Write I2C_TXDR
NBYTES
transmitted
Yes
Yes
I2C_ISR.TC
No
I2C_ISR.TCR
Yes
IF N< 256
NBYTES = N; N = 0; RELOAD = 0
AUTOEND = 0 for RESTART; 1 for STOP
ELSE
NBYTES = 0xFF; N = N-255
RELOAD = 1
RM0453 Rev 1
No
= 1?
No
?
= 1?
= 1?
MS19861V3
1085/1461
1126

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