English
Language : 

LIS331DL_08 Datasheet, PDF (18/42 Pages) STMicroelectronics – MEMS motion sensor 3-axis - ±2g/±8g smart digital output -nano-accelerometer
Digital interfaces
5
Digital interfaces
LIS331DL
The registers embedded inside the LIS331DL 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 pads. To select/exploit the I2C interface, CS
line must be tied high (i.e connected to Vdd_IO).
Table 8. Serial interface pin description
Pin name
Pin description
CS
SCL/SPC
SDA/SDI/SDO
SDO/SA0
SPI enable
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)
SPI Serial Data Output (SDO)
I2C less significant bit of the device address (SA0)
5.1
I2C serial interface
The LIS331DL I2C is a bus slave. The I2C is employed to write data into registers whose
content can also be read back.
The relevant I2C terminology is given in the table below.
Table 9. Serial interface pin description
Term
Description
Transmitter
Receiver
Master
Slave
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 are connected to Vdd_IO through a pull-up resistor
embedded inside the LIS331DL. When the bus is free both the lines are high.
The I2C interface is compliant with fast mode (400 kHz) I2C standards as well as with the
normal mode.
18/42