cancel
Showing results for 
Search instead for 
Did you mean: 

LSM9DS1 I2C address confusion

NHuy.12
Associate

I have confusion about I2C address for magnetometer.

As in the datasheet at page 11:

  • SDO_M: I2C least significant bit of the device address (SA0) for the magnetometer

But in the table 20 page 30:

  • See picture enclosed

It looks like the SDO_M pin is used for SAD[1] since the SAD[0] is not change.

Please help me in this case, is it correct?

3 REPLIES 3
T J
Lead

that data sheet looks crazy...

pins CS_A/G and CS_M How are they set ?

T J
Lead

CS_A/G =1

SPI enable

I2C/SPI mode selection for the accelerometer and gyroscope

(1: SPI idle mode / I2C communication enabled;

0: SPI communication mode / I2C disabled)

CS_M =1

SPI enable

I2C/SPI mode selection for the magnetometer

(1: SPI idle mode / I2C communication enabled;

0: SPI communication mode / I2C disabled)

Yes ?

T J
Lead

your using SCL/SPC as the clk and SDA

read = 00111

pin SDO its a typo..

5 SDO_A/G

SPI serial data output (SDO) for the accelerometer and gyroscope

I2C least significant bit of the device address (SA0) for the accelerometer

and gyroscope

6 SDO_M

SPI serial data output (SDO) for the magnetometer

I2C least significant bit of the device address (SA0) for the magnetometer

one will be SA0 and the other will be SA1,

are SD)_A/G and SDO_M both Low ?

your address is :

read = 00111 0 0 1

Write = 00111 0 0 0