Figure 226. Transfer Sequence Flowchart For Fmpi2C Master Transmitter For N>255 Bytes - ST STM32F412 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0402
Figure 226. Transfer sequence flowchart for FMPI2C master transmitter for N>255
No
Set FMPI2C_CR2.START
Fast-mode Plus Inter-integrated circuit (FMPI2C) interface
FMPI2C_ISR.NACKF
= 1?
Yes
End
with slave addess
NBYTES
...
End
bytes
Master
transmission
Master initialization
NBYTES = 0xFF; N=N-255
RELOAD = 1
Configure slave address
Set FMPI2C_CR2.START
FMPI2C_ISR.TXIS
= 1?
Yes
Write FMPI2C_TXDR
NBYTES
transmitted
Yes
Yes
FMPI2C_ISR.TC
= 1?
No
FMPI2C_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
RM0402 Rev 6
No
No
?
= 1?
MSv35970V1
683/1163
722

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF