Skip to main content
Visitor II
May 6, 2014
Question

Use LIS3DH on the same SPI bus as an EEPROM, is it possible?

  • May 6, 2014
  • 13 replies
  • 3414 views
Posted on May 06, 2014 at 17:18

I'm planning to use a LIS3DH on the same SPI bus as an EEPROM.

But in the datasheet it says the LIS3DH CS pin is selecting SPI or I2C.

So is it possible to use SPI to the EEPROM when LIS3DH CS pin is high (the LIS3DH would be in I2C mode)?

I don't think it would be ok, or? 

#cs #spi #lis2dh #lis2hh
    This topic has been closed for replies.

    13 replies

    Visitor II
    October 4, 2016
    Posted on October 04, 2016 at 23:37

    Hi,

    So I've passed nearly 6 hours trying to configure an interrupt for basic movement detection on a LIS2DH12 without any luck when I've stumbled on this thread.

    Guess what ? Yep I've fried the accelerator on my prototype board with a shared SPI bus.

    Setting bit #7 on register 0x17 seemed to have solved my issues on a second prototype board. Won't get fooled again.

    Hey guys at ST micro ! Shouldn't you update ALL related datasheets and warn developers regarding this MAJOR issue ?

    Geez.....

    Visitor II
    October 14, 2016
    Posted on October 14, 2016 at 08:49

    May I suggest to also update the LIS3DH datasheet in the same way?

    The suggested procedure to disable the SPI accesses a bit in the reserved register space. I am a bit uncomfortable doing this as long as the procedure is not in the datasheet.  By definiton, reserved registers mappings may change with any future HW revision of the device without notice.

    Thanks,

    Norbert

    ST Employee
    October 14, 2016
    Posted on October 14, 2016 at 17:20

    I asked the team responsible for the datasheet to add the information.

    Best regards

    Miroslav

    Visitor II
    February 8, 2019

    Datasheet for LIS3DH has not been updated as of 08.02.2019.