Skip to main content
Visitor II
April 12, 2017
Question

Cannot return in Stream Mode after IT

  • April 12, 2017
  • 1 reply
  • 629 views
Posted on April 12, 2017 at 15:51

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:

  1. I initialialize all the register
  2. I trigger the interrupt
  3. I read all the data in the FIFO
  4. 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
    This topic has been closed for replies.

    1 reply

    ST Employee
    September 29, 2017
    Posted on September 29, 2017 at 15:46

    Do you gen any data from the FIFO (in step 3)?

    Can you share complete sensor register configuration?