Download Print this page

ST STM32L4+ Series Reference Manual page 48

Hide thumbs Also See for STM32L4+ Series:

Advertisement

Contents
48.6.4
48.6.5
48.6.6
48.6.7
48.6.8
48.6.9
49
Inter-integrated circuit (I2C) interface . . . . . . . . . . . . . . . . . . . . . . . . 1648
49.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1648
49.2
I2C main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1648
49.3
I2C implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1649
49.4
I2C functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1649
49.4.1
49.4.2
49.4.3
49.4.4
49.4.5
49.4.6
49.4.7
49.4.8
49.4.9
49.4.10 I2C_TIMINGR register configuration examples . . . . . . . . . . . . . . . . . 1681
49.4.11 SMBus specific features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1682
49.4.12 SMBus initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1685
49.4.13 SMBus: I2C_TIMEOUTR register configuration examples . . . . . . . . 1687
49.4.14 SMBus slave mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1688
49.4.15 Wakeup from Stop mode on address match . . . . . . . . . . . . . . . . . . . 1696
49.4.16 Error conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1696
49.4.17 DMA requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1698
49.4.18 Debug mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1699
49.5
I2C low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1699
49.6
I2C interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1700
49.7
I2C registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1701
49.7.1
49.7.2
49.7.3
48/2301
TAMP interrupt enable register (TAMP_IER) . . . . . . . . . . . . . . . . . . . 1642
TAMP status register (TAMP_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1643
TAMP masked interrupt status register (TAMP_MISR) . . . . . . . . . . . 1644
TAMP status clear register (TAMP_SCR) . . . . . . . . . . . . . . . . . . . . . 1645
TAMP backup x register (TAMP_BKPxR) . . . . . . . . . . . . . . . . . . . . . 1645
TAMP register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1647
I2C block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1650
I2C pins and internal signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1651
I2C clock requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1651
Mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1652
I2C initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1652
Software reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1657
Data transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1658
I2C slave mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1660
I2C master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1669
I2C control register 1 (I2C_CR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1701
I2C control register 2 (I2C_CR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1704
I2C own address 1 register (I2C_OAR1) . . . . . . . . . . . . . . . . . . . . . . 1707
RM0432 Rev 6
RM0432

Advertisement

loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel