Download Print this page

ST STM32F301 6 Series Reference Manual page 678

Advanced arm-based 32-bit mcus

Advertisement

Inter-integrated circuit interface (I2C)
Figure 267. Transfer sequence flow for I2C controller receiver, N > 255 bytes
678/874
Set I2C_CR2.START with
target address NBYTES
...
End
RM0366 Rev 5
Controller
reception
Controller initialization
NBYTES = 0xFF; N=N-255
RELOAD =1
Configure target address
Set I2C_CR2.START
I2C_ISR.RXNE
=1?
Yes
Read I2C_RXDR
NBYTES
received?
Yes
Yes
I2C_ISR.TC =
1?
No
No
I2C_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
RM0366
No
No
MSv19864V3

Advertisement

loading
Need help?

Need help?

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

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series