Figure 217. Transfer Sequence Flowchart For I2C Master Receiver For N>255 Bytes - STMicroelectronics STM32F05 series Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0091
Figure 217. Transfer sequence flowchart for I2C master receiver for N>255 bytes
Set I2Cx_CR2.START
with slave addess
NBYTES ...
End
Doc ID 018940 Rev 1
Inter-integrated circuit (I
Master reception
Master initialization
NBYTES = 0xFF; N=N-255
RELOAD =1
Configure slave address
Set I2Cx_CR2.START
I2Cx_ISR.RXNE
=1?
Yes
Read I2Cx_RXDR
NBYTES
received?
Yes
Yes
I2Cx_ISR.TC
= 1?
No
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
MS19864V1
497/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?

Table of Contents