Does the acceleration have to remain in same direction over the THS for the DUR in order for the INT to occur?
We are using the LIS2DH12 accelerometer. We want to trigger an interrupt upon motion that exceeds our INTx_THS value. The sensor could experience vibration in its deployment, therefore to prevent false positives we define a INTx_DUR value (the sensor must undergo a certain acceleration value for a certain duration in order for INT to be triggered). We are bit confused what constitutes the duration. Does acceleration have to exceed the threshold along the same axis for the defined duration?
For example, if we set the INTx_THS value to be 2000 mg and INTx_DUR to be 100 ms, does the LIS2DH12 interrupt clock reset if the sensor experiences +2000 mg for 50 ms, and -2000 mg for another 50 ms? In other words, would an interrupt not be triggered for this case? Or is it looking at overall magnitude to generate an interrupt.
