RM0091
Figure 214. Transfer sequence flowchart for I2C master transmitter for N>255 bytes
No
Set I2Cx_CR2.START
I2Cx_ISR.NACKF
= 1?
Yes
End
with slave addess
NBYTES ...
End
Doc ID 018940 Rev 1
Inter-integrated circuit (I
Master
transmission
Master initialization
NBYTES = 0xFF; N=N-255
RELOAD =1
Configure slave address
Set I2Cx_CR2.START
I2Cx_ISR.TXIS
=1?
Yes
Write I2Cx_TXDR
NBYTES
transmitted?
Yes
Yes
I2Cx_ISR.TC
= 1?
No
I2Cx_ISR.TCR
= 1?
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
2
C) interface
No
No
MS19861V1
493/742
Need help?
Do you have a question about the STM32F05 series and is the answer not in the manual?
Questions and answers