Skip to main content
Visitor II
August 3, 2018
Question

LSM9DS1 I2C address confusion

  • August 3, 2018
  • 3 replies
  • 1701 views

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?

    This topic has been closed for replies.

    3 replies

    Visitor II
    August 3, 2018

    that data sheet looks crazy...

    pins CS_A/G and CS_M How are they set ?

    Visitor II
    August 3, 2018

    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 ?

    Visitor II
    August 3, 2018

    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