cancel
Showing results for 
Search instead for 
Did you mean: 

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

sima2
Associate III
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
15 REPLIES 15
Miroslav BATEK
ST Employee
Posted on August 17, 2016 at 14:41

Thank you for the notice. We are going to update the datasheet asap.

Best regards

Miroslav

audioroot
Associate
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.....

ngrunert
Associate
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

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

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

Best regards

Miroslav

Accessing an undocumented register appears to be a very interesting solution:)

Datasheet for LIS3DH has not been updated as of 08.02.2019.