English
Language : 

LSM6DSM Datasheet, PDF (37/113 Pages) STMicroelectronics – always-on 3D accelerometer and 3D gyroscope
LSM6DSM
Digital interfaces
6
Digital interfaces
6.1
I2C/SPI interface
The registers embedded inside the LSM6DSM may be accessed through both the I2C and
SPI serial interfaces. The latter may be SW configured to operate either in 3-wire or 4-wire
interface mode.
The serial interfaces are mapped onto the same pins. To select/exploit the I2C interface, the
CS line must be tied high (i.e connected to Vdd_IO).
Pin name
CS
SCL/SPC
SDA/SDI/SDO
SDO/SA0
Table 9. Serial interface pin description
Pin description
SPI enable
I2C/SPI mode selection (1: SPI idle mode / I2C communication enabled;
0: SPI communication mode / I2C disabled)
I2C Serial Clock (SCL)
SPI Serial Port Clock (SPC)
I2C Serial Data (SDA)
SPI Serial Data Input (SDI)
3-wire Interface Serial Data Output (SDO)
SPI Serial Data Output (SDO)
I2C less significant bit of the device address
6.2
Master I2C
If the LSM6DSM is configured in Mode2, a master I2C line is available. The master serial
interface is mapped in the following dedicated pins.
Pin name
MSCL
MSDA
MDRDY
Table 10. Master I2C pin details
Pin description
I2C serial clock master
I2C serial data master
I2C master external synchronization signal
DocID028165 Rev 2
37/113
113