Fast-mode Plus Inter-integrated circuit (FMPI2C) interface RM0402
696/1163 RM0402 Rev 6
FMPI2C_PECR register is automatically transmitted if the master requests an extra byte
after the NBYTES-1 data transfer.
Caution: The PECBYTE bit has no effect when the RELOAD bit is set.
Figure 232. Transfer sequence flowchart for SMBus slave transmitter N bytes + PEC
MSv35973V1
Slave initialization
SMBus slave
transmission
Write FMPI2C_TXDR.TXDATA
FMPI2C_ISR.TXIS
=1?
No
Yes
FMPI2C_ISR.ADDR
= 1?
Yes
No
Read ADDCODE and DIR in FMPI2C_ISR
FMPI2C_CR2.NBYTES = N + 1
PECBYTE=1
Set FMPI2C_ICR.ADDRCF
SCL
stretched