Skip to main content
Visitor II
November 25, 2016
Question

LIS2DH12 FIFO using INT1_THS

  • November 25, 2016
  • 1 reply
  • 570 views
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. 

    This topic has been closed for replies.

    1 reply

    ST Employee
    November 30, 2016
    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