2018-03-09 02:44 AM
The LIS3DH is configured to use INT1 to interrupt the MCU when the acceleration value on any of the 3 axis exceed the threshold that is set by the MCU. Firstly, as my understanding, the LID3DH does not stop sampling acceleration data even if the interrupt is triggered (even in stream-to-fifo mode, it does not stop sampling until the fifo gets full). Is this correct? If it's correct, is there a good way to get the acceleration data corresponds to the exact time when the interrupt is triggered? Thanks.
Solved! Go to Solution.
2018-03-23 08:01 AM
It really depends on you application, if you think the interrupt can come quickly after FIFO is flushed you have to take care also the case 2.
2018-03-26 02:20 AM
Thanks for the reply.
It's not necessarily a different trigger that comes quickly enough can cause case 2. If the original trigger last long enough and the interrupt is latched for that trigger, the trigger will actually cause more than 1 interrupt. Once the first interrupt is unlatched, the second interrupt will come.
Have your chip design team consider store the trigger index at the fifo buffer in a register? For example, if the data that trigger the interrupt is stored at fifo[11],fifo[12],fifo[13] (duration set to 3) the trigger index is set to 11 in that register. That would be easier for the application to determine the trigger data.