English
Language : 

LSM330DL Datasheet, PDF (21/54 Pages) STMicroelectronics – Linear sensor module 3D accelerometer sensor and 3D gyroscope sensor
LSM330DL
5
Digital interfaces
Digital interfaces
The registers embedded inside the LSM330DL 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.
To select/exploit the I2C interface, the CS line must be tied high (i.e. connected to Vdd_IO).
Table 10. Serial interface pin description
Pin name
Pin description
CS_A
Linear acceleration SPI enable
Linear acceleration I2C/SPI mode selection (1: I2C mode; 0: SPI enabled)
CS_G
SCL_A
SCL_G
SDA/SDI_A
SDA/SDI_G
SDO_A
SDO_G
Angular rate SPI enable
Angular rate I2C/SPI mode selection (1: I2C mode; 0: SPI enabled)
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)
I2C least significant bit of the device address (SA0)
SPI serial data output (SDO)
5.1
I2C serial interface
The LSM330DL I2C is a bus slave. The I2C is employed to write data into the registers
whose content can also be read back.
The relevant I2C terminology is given in the table below.
Table 11. Serial interface terminology
Term
Description
Transmitter
The device which sends data to the bus
Receiver
Master
The device which receives data from the bus
The device which initiates a transfer, generates clock signals and terminates a
transfer
Slave
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.
Doc ID 022018 Rev 1
21/54