cancel
Showing results for 
Search instead for 
Did you mean: 

Lis2dh12 - can threshold shock sample appear in the middle of the fifo data

DerrickEz
Associate

Hi,

I am using the Lis2dh12 mems accelerometer sensor in a design. I configured it for a g-force threshold within any of the 3 axes and using the interrupt (pin 1) with the stream to fifo setting. I am using the I2c (400kbps) and ODR is 100 hz. When the interrupt trips the "threshold exceeding" sample always appear near the end of the fifo dump. This is listed in the manual as the correct behavior.

However, my question is the following: Is there a way to configure the device so the sample that exceeds the threshold appears in the "middle" of the fifo dump?. In that way, I can have the data before and after the threshold event.

 

Thanks

 

DerrickEz

1 REPLY 1
Federica Bossi
ST Employee

Hi @DerrickEz ,

Welcome to ST Community!

Just to be sure before answering, are you referring to the Free-fall and wake-up interrupts in section 6.3 of the application note?

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.