English
Language : 

LSM6DS0 Datasheet, PDF (26/59 Pages) STMicroelectronics – Embedded temperature sensor
Digital interfaces
4
Digital interfaces
LSM6DS0
The registers embedded inside the LSM6DS0 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 13. 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
4.1
I2C serial interface
The LSM6DS0 I2C is a bus slave. The I2C is employed to write the data to the registers
whose content can also be read back.
The relevant I2C terminology is provided in the table below.
Term
Transmitter
Receiver
Master
Slave
Table 14. I2C terminology
Description
The device which sends data to the bus
The device which receives data from the bus
The device which initiates a transfer, generates clock signals and terminates a
transfer
The device addressed by the master
There are two signals associated with the I2C bus: the serial clock line (SCL) and the Serial
DAta line (SDA). The latter is a bidirectional line used for sending and receiving the data
to/from the interface. Both the lines must be connected to Vdd_IO through an external pull-
up resistor. When the bus is free, both the lines are high.
The I2C interface is implemeted with fast mode (400 kHz) I2C standards as well as with the
standard mode.
In order to disable the I2C block, the I2C_disable bit must be written to ‘1’ in CTRL_REG9
(23h).
26/59
DocID025604 Rev 3