EasyManuals Logo
Home>ST>Microcontrollers>STM32G4 Series

ST STM32G4 Series User Manual

ST STM32G4 Series
2126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1882 background imageLoading...
Page #1882 background image
Inter-integrated circuit (I2C) interface RM0440
1882/2126 RM0440 Rev 4
Note: SCLL is also used to generate the t
BUF
and
t
SU:STA
timings.
SCLH is also used to generate the t
HD:STA
and
t
SU:STO
timings.
Refer to Section 41.4.10: I2C_TIMINGR register configuration examples for examples of
I2C_TIMINGR settings vs. I2CCLK frequency.
Master communication initialization (address phase)
In order to initiate the communication, the user must program the following parameters for
the addressed slave in the I2C_CR2 register:
Addressing mode (7-bit or 10-bit): ADD10
Slave address to be sent: SADD[9:0]
Transfer direction: RD_WRN
In case of 10-bit address read: HEAD10R bit. HEAD10R must be configure to indicate
if the complete address sequence must be sent, or only the header in case of a
direction change.
The number of bytes to be transferred: NBYTES[7:0]. If the number of bytes is equal to
or greater than 255 bytes, NBYTES[7:0] must initially be filled with 0xFF.
The user must then set the START bit in I2C_CR2 register. Changing all the above bits is
not allowed when START bit is set.
Then the master automatically sends the START condition followed by the slave address as
soon as it detects that the bus is free (BUSY = 0) and after a delay of t
BUF
.
In case of an arbitration loss, the master automatically switches back to slave mode and can
acknowledge its own address if it is addressed as a slave.
Note: The START bit is reset by hardware when the slave address has been sent on the bus,
whatever the received acknowledge value. The START bit is also reset by hardware if an
arbitration loss occurs.
In 10-bit addressing mode, when the Slave Address first 7 bits is NACKed by the slave, the
Table 379. I
2
C-SMBus specification clock timings
Symbol Parameter
Standard-
mode (Sm)
Fast-mode
(Fm)
Fast-mode
Plus (Fm+)
SMBus
Unit
Min Max Min Max Min Max Min Max
f
SCL
SCL clock frequency - 100 - 400 - 1000 - 100 kHz
t
HD:STA
Hold time (repeated) START condition 4.0 - 0.6 - 0.26 - 4.0 - µs
t
SU:STA
Set-up time for a repeated START
condition
4.7 - 0.6 - 0.26 - 4.7 - µs
t
SU:STO
Set-up time for STOP condition 4.0 - 0.6 - 0.26 - 4.0 - µs
t
BUF
Bus free time between a STOP and
START condition
4.7 - 1.3 - 0.5 - 4.7 - µs
t
LOW
Low period of the SCL clock 4.7 - 1.3 - 0.5 - 4.7 - µs
t
HIGH
Period of the SCL clock 4.0 - 0.6 - 0.26 - 4.0 50 µs
t
r
Rise time of both SDA and SCL signals - 1000 - 300 - 120 - 1000 ns
t
f
Fall time of both SDA and SCL signals - 300 - 300 - 120 - 300 ns

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32G4 Series and is the answer not in the manual?

ST STM32G4 Series Specifications

General IconGeneral
BrandST
ModelSTM32G4 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals