AnsweredAssumed Answered

LIS3DH Stream FIFO

Question asked by Anusuya Nallathambi on May 16, 2017
Latest reply on May 19, 2017 by Miroslav B

I configured the LIS3DH in stream FIFO mode. Then I set the WATERMARK level as 8 bytes and I poll the FIFO_SRC_REG to see if the WTM bit is 1 and then I collect the 8 bytes of data accumulated in FIFO. Now my problem is, in the code, for debug purposes, I display the data I collected and this reduces the number of data points I read when the program is run for n seconds. That is, when I run the code without displaying for the same n seconds, almost double the amount of data points is being read. Why is this ? 

 

In the program I check the overrun flag in FIFO_SRC_REG too. But it is never set during the run of the code. So I should not be losing any data while reading and printing it. 

 

My questions :

1. Does the overrun flag not work in Stream mode ? i.e when new data is overwritten does it not stay high ?

2. Does the FIFO stops accepting data when data is being read from it ?

Outcomes