Download Print this page

ST STM32F301 6 Series Reference Manual page 679

Advanced arm-based 32-bit mcus

Advertisement

RM0366
Example I2C
NBYTES
INIT: program
EV1: RXNE ISR: rd data1
EV2: RXNE ISR: rd data2
Example I2C
INIT
NBYTES
xx
INIT: program
EV1: RXNE ISR: rd data1
EV2: RXNE ISR: read data2
EV3: TC ISR: program
25.4.10
I2C_TIMINGR register configuration examples
The following tables provide examples of how to program the I2C_TIMINGR register to
obtain timings compliant with the I²C-bus specification. To get more accurate configuration
values, use the STM32CubeMX tool (I2C Configuration window).
Figure 268. Transfer bus diagrams for I2C controller receiver
controller
receiver 2 bytes, automatic end mode (STOP)
S
Address
A
data1
INIT
xx
2
target
address, program NBYTES = 2, AUTOEND=1, set START
controller
receiver 2 bytes, software end mode (RESTART)
RXNE
S
Address
A
data1
A
2
target
address, program NBYTES = 2, AUTOEND=0, set START
target
address, program NBYTES = N, set START
(mandatory events only)
RXNE
RXNE
data2
NA
A
EV1
EV2
RXNE
TC
data2
NA
ReS Address
EV1
EV2
N
RM0366 Rev 5
Inter-integrated circuit interface (I2C)
legend:
P
legend:
transmission
reception
SCL stretch
transmission
reception
SCL stretch
MSv19865V2
679/874
711

Advertisement

loading
Need help?

Need help?

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

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series