Inter-integrated circuit interface (I2C)
Figure 264. Transfer sequence flow for I2C controller transmitter, N > 255 bytes
674/874
No
I2C_ISR.NACKF
= 1?
Yes
End
Set I2C_CR2.START
with target address
NBYTES ...
End
RM0366 Rev 5
Controller
transmission
Controller initialization
NBYTES = 0xFF; N=N-255
RELOAD = 1
Configure target address
Set I2C_CR2.START
I2C_ISR.TXIS
=1?
Yes
Write I2C_TXDR
NBYTES
transmitted?
Yes
Yes
I2C_ISR.TC
= 1?
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
No
No
= 1?
RM0366
MSv19861V4
Need help?
Do you have a question about the STM32F301 6 Series and is the answer not in the manual?