2022-07-06 12:57 AM
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
2022-07-22 06:58 AM
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