cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH FIFO in SPI mode

David Kaplan_2
Associate II
Posted on July 13, 2017 at 14:06

I did not quite understand from the pdf when reading 32*3 samples from the FIFO in SPI mode, can I set the SPI starting address at OUT_X_L (28h) with the SPI's MS bit raised and then read in a constant SPI read stream (single message) all of the 192 bytes?

Or do I need to read the SPI starting with  address (28h | 40h) in 32 different messages?

I saw in a previous post, that you can use the FIFO only in 10bit mode.

Is this true?

#lis2dh-fifo-spi
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Robert Vice
Associate II
Posted on July 26, 2017 at 22:32

I have a similar question surrounding I2C with reading the FIFO, but on the LIS2DE12. Seems the answer to this will answer both of our questions.

Posted on September 04, 2017 at 13:14

Yes, you can read the whole FIFO in single SPI transaction (please see chapter 4.1.5 Retrieve data from FIFO in datasheet).

Yes, FIFO contains only 10 bit values.

Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.