cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH12 STREAM-TO-FIFO reset

TGeld.1
Associate

Hello,

i have a problem with my lis2dh12 acc sensor.

I use the sensor in low power, 8bit with 100Hz and STREAM-TO-FIFO mode.

After a interrupt, i read out all 32 FIFO reg and the INT1_SRC reg. These value look good. But when i trigger the interrupt again after that. The FIFO isn´t filled with new data. All 32 reg have the same value.

Did I miss something in the sheet?

dear,

Torben

1 REPLY 1
Eleon BORLINI
ST Employee

Hi Torben @TGeld.1​ ,

According to the datasheet, Stream-to-FIFO can be used in order to analyze the sampling history that generates an interrupt. The standard operation is to read the contents of FIFO when the FIFO mode is triggered and the FIFO buffer is full and stopped. 

So, the buffer is stopped, and you have to recover the FIFO functionality by activate the Stream mode.

You might also have a look to the C drivers and examples on Github --> lis2dh12_read_fifo.c

-Eleon