cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH12 FIFO using INT1_THS

goreandmiller
Associate
Posted on November 25, 2016 at 23:43

I wish to filter incoming FIFO data by a threshold value as set in INT1_THS, however the WTM flag is set regardless of the magnitude. Are these two functions not compatible? If not, I need to know how to link the threshold setting to the FIFO data. 

1 REPLY 1
Miroslav BATEK
ST Employee
Posted on November 30, 2016 at 14:01

No, the functions are not compatible. Please check the datasheet for available FIFO modes.

If my understanding is correct, you want to store in FIFO only the data which are above a certain 

threshold

, this is not possible.

The only available option is to use Stream-to-FIFO mode, it this mode the data are stored prior an interrupt. The 

interrupt

 can be configured to occur when 

threshold

 is reached.

Best regards

Miroslav