Skip to main content
Visitor II
July 13, 2017
Question

LIS2DH FIFO in SPI mode

  • July 13, 2017
  • 1 reply
  • 877 views
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 topic has been closed for replies.

    1 reply

    Visitor II
    July 26, 2017
    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.

    ST Employee
    September 4, 2017
    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.