2016-11-25 02:43 PM
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.
2016-11-30 05:01 AM
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