Figure 230. Transfer Sequence Flowchart For I2C Master Transmitter For N>255 Bytes - ST STM32L0x3 Reference Manual

Ultra-low-power advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0367
Figure 230. 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
RM0367 Rev 7
No
= 1?
No
?
= 1?
= 1?
MS19861V3
723/1043
763

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents