Cannot return in Stream Mode after IT
Hi,
I'm working on the LIS2DH12 and I have issues when I configure it. I want to use the Stream-to-FIFO mode, and I want INT1 to trigger when one of the acceleration axis is above the threshold. I have configured the LIS2DH12 registers to perform this.
Then i do this:
- I initialialize all the register
- I trigger the interrupt
- I read all the data in the FIFO
- When the FIFO is empty (0x20 in FIFO_SRC_REG ) I read the INT1_SRC in order to clear the IA bit, and I read 0x15.
After this the FIFO still empty and the LIS2DH12 doesn't fill him, do you have an idea why the FIFO doesn't return in stream mode?
ps: INT_1 is latched, but reading INT1_SRC must clear it.
#interrupts #lis2dh12 #stream-to-fifo