Inter-integrated circuit (I2C) interface
•
Configuring the maximum duration of t
Table 175. Examples of TIMEOUTA settings for various I2CCLK frequencies
f
I2CCLK
8 MHz
16 MHz
48 MHz
32.4.15
SMBus slave mode
This section is relevant only when SMBus feature is supported. Refer to
implementation.
In addition to I2C slave transfer management (refer to
some additional software flowcharts are provided to support SMBus.
SMBus Slave transmitter
When the IP is used in SMBus, SBC must be programmed to '1' in order to allow the PEC
transmission at the end of the programmed number of data bytes. When the PECBYTE bit
is set, the number of bytes programmed in NBYTES[7:0] includes the PEC transmission. In
that case the total number of TXIS interrupts is NBYTES-1 and the content of the
I2C_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.
968/1390
TIMEOUTA[11:0] bits
0x63
0xC7
0x257
RM0444 Rev 5
to 50 µs
IDLE
(max t
= 50 µs)
IDLE
TIDLE bit TIMEOUTEN bit
1
1
1
1
1
1
Section 32.4.9: I2C slave
RM0444
t
TIDLE
100 x 4 x 125 ns = 50 µs
200 x 4 x 62.5 ns = 50 µs
600 x 4 x 20.08 ns = 50 µs
Section 32.3: I2C
mode)
Need help?
Do you have a question about the STM32G0 1 Series and is the answer not in the manual?
Questions and answers