Inter-integrated circuit (I2C) interface
RM0365
809/1080
DocID025202 Rev 7
Figure 311. Bus transfer diagrams for SMBus slave receiver (SBC=1)
This section is relevant only when SMBus feature is supported. Please refer to
In addition to I2C master transfer management (refer to
Section 28.4.8: I2C master mode
some additional software flowcharts are provided to support SMBus.
SMBus Master transmitter
When the SMBus master wants to transmit the PEC, the PECBYTE bit must be set and the
number of bytes must be programmed in the NBYTES[7:0] field, before setting the START
bit. In this case the total number of TXIS interrupts will be NBYTES-1. So if the PECBYTE
bit is set when NBYTES=0x1, the content of the I2C_PECR register is automatically
transmitted.
If the SMBus master wants to send a STOP condition after the PEC, automatic end mode
should be selected (AUTOEND=1). In this case, the STOP condition automatically follows
the PEC transmission.
069
([DPSOH60%XVVODYHUHFHLYHUE\WHV3(&
$GGUHVV
6
(9$''5,65FKHFN$''&2'(DQG',5SURJUDP1%<7(6 3(&%<7( 5(/2$' VHW$''5&)
(95;1(,65UGGDWD
(95;1(,65UGGDWD
(95;1(,65UG3(&
$
GDWD
$
GDWD
$
5;1(
3(&
$
5;1(
3
OHJHQG
WUDQVPLVVLRQ
UHFHSWLRQ
6&/VWUHWFK
(9
(9
(9
(9
$''5
5;1(
1%<7(6
([DPSOH60%XVVODYHUHFHLYHUE\WHV3(&ZLWK$&.FRQWURO
5(/2$'
$GGUHVV
6
(9$''5,65FKHFN$''&2'(DQG',5SURJUDP1%<7(6 3(&%<7( 5(/2$' VHW$''5&)
(95;1(7&5,65UGGDWDSURJUDP1$&. DQG1%<7(6
(95;1(7&5,65UGGDWDSURJUDP1$&. 1%<7(6 DQG5(/2$'
(95;1(7&5,65UG3(&
$
$''5
GDWD
$
GDWD
$
5;1(7&5
3(&
$
5;1(7&5
3
OHJHQG
WUDQVPLVVLRQ
UHFHSWLRQ
6&/VWUHWFK
9
(
9
(
9
(
5;1(
(9
1%<7(6