Figure 298. Transfer Bus Diagrams For I2C Master Receiver; (Mandatory Events Only) - STMicroelectronics STM32WL5 Series Reference Manual

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

Inter-integrated circuit (I2C) interface
Example I2C master receiver 2 bytes, automatic end mode (STOP)
NBYTES
INIT: program Slave address, program NBYTES = 2, AUTOEND=1, set START
EV1: RXNE ISR: rd data1
EV2: RXNE ISR: rd data2
Example I2C master receiver 2 bytes, software end mode (RESTART)
INIT
NBYTES
xx
INIT: program Slave address, program NBYTES = 2, AUTOEND=0, set START
EV1: RXNE ISR: rd data1
EV2: RXNE ISR: read data2
EV3: TC ISR: program Slave address, program NBYTES = N, set START
34.4.10
I2C_TIMINGR register configuration examples
The following tables provide examples of how to program the I2C_TIMINGR to obtain
timings compliant with the I
the STM32CubeMX tool (I2C Configuration window).
1080/1450

Figure 298. Transfer bus diagrams for I2C master receiver

S
Address
A
data1
INIT
xx
2
RXNE
S
Address
A
data1
A
EV1
2
2
C specification. To get more accurate configuration values, use

(mandatory events only)

RXNE
RXNE
data2
NA
P
A
EV1
EV2
RXNE
TC
data2
NA
ReS Address
EV2
N
RM0453 Rev 5
RM0453
legend:
transmission
reception
SCL stretch
legend:
transmission
reception
SCL stretch
MS19865V1

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32wl55 seriesStm32wl54 series

Table of Contents