Skip to main content
Visitor II
October 20, 2017
Solved

FIFO Mode of LIS2DE12

  • October 20, 2017
  • 1 reply
  • 833 views
Posted on October 21, 2017 at 00:43

I am trying read the X, Y, Z values in FIFO mode. I don't understand the reading procedure.

Do I need to start reading from FIFO_READ_START and continue reading 6 bytes and then initiate another reading from FIFO_READ_START?

 or

Do I need to read 

OUT_X_H (2bytes), 

OUT_Y_H

(2bytes)

 and 

OUT_Z_H

(2bytes) and continue till I read all 32 levels?

    This topic has been closed for replies.
    Best answer by Miroslav BATEK
    Posted on October 23, 2017 at 10:35

    Basically both ways are possible. You can read the FIFO content in several 6-bytes read transaction starting from FIFO_READ_START (28h) or you can repeat reading of  X, Y, Z separately data in 2-bytes read transaction. There is also possibility to read the whole FIFO in one 192-bytes read transaction.

    1 reply

    ST Employee
    October 23, 2017
    Posted on October 23, 2017 at 10:35

    Basically both ways are possible. You can read the FIFO content in several 6-bytes read transaction starting from FIFO_READ_START (28h) or you can repeat reading of  X, Y, Z separately data in 2-bytes read transaction. There is also possibility to read the whole FIFO in one 192-bytes read transaction.

    Visitor II
    November 8, 2017
    Posted on November 08, 2017 at 20:39

    Hello Miroslav,

    I have one confusion. LIS2DE12 provides 8-bit value. So why do I need to read two bytes? Isn't it supposed to be 1 byte for a single axis, 3 bytes for a single FIFO and 96 bytes for whole FIFO?

    ST Employee
    November 10, 2017
    Posted on November 10, 2017 at 10:52

    See

    https://community.st.com/0D50X00009XkXeoSAF