Skip to main content
Visitor II
April 8, 2018
Solved

Can't get IG2 work on either INT1 or INT2 for Lis3de

  • April 8, 2018
  • 1 reply
  • 666 views
Posted on April 08, 2018 at 13:13

I encountered a problem that IG2 doesn't get detected on either INT1 or INT2 pin. I confirm the IG1 work on both INT1 and INT2. Followings are the combinations I tried (CTRL REG1,2,4,5 kept unchanged):

The INTx_CFG,INTx_THS, INTx_Duration are set same for IG1 and IG2.

1) CTRL_REG1 - CTRL6

{

     0x57, 

     0x39,

     0x40, //IG1 route to INT1

     0x00,

     0x40, //Enable FIFO mode

     0, //Disable INT2 

}

In this configuration, IG1 is correctly detected on INT1 pin.

2) CTRL_REG1 - CTRL6

{

     0x57, 

     0x39,

     0x20, //IG2 route to INT1

     0x00,

     0x40, //Enable FIFO mode

     0, //Disable INT2 

}

In this configuration, IG2 is *NOT* correctly detected on INT1 pin

3) CTRL_REG1 - CTRL6

{

     0x57, 

     0x39,

     0, //Disable INT1

     0x00,

     0x40, //Enable FIFO mode

     0x40, //IG1 route to INT2

}

In this configuration, IG1 is correctly detected on INT2 pin

4) CTRL_REG1 - CTRL6

{

     0x57, 

     0x39,

     0, //Disable INT1

     0x00,

     0x40, //Enable FIFO mode

     0x20, //IG2 route to INT2

}

In this configuration, IG2

is *NOT* correctly detected on INT2

pin.

What am I missing?

    This topic has been closed for replies.
    Best answer by Kefei Yao
    Posted on April 09, 2018 at 09:12

    It turns out the CTRL_REG2 setting is wrong in my settings. It disabled the high-pass filter for IG2 which makes the IG2 active all the time because of the Gravity. So it is not detected since the interrupt is set to edge sensitive. 

    1 reply

    Kefei YaoAuthorAnswer
    Visitor II
    April 9, 2018
    Posted on April 09, 2018 at 09:12

    It turns out the CTRL_REG2 setting is wrong in my settings. It disabled the high-pass filter for IG2 which makes the IG2 active all the time because of the Gravity. So it is not detected since the interrupt is set to edge sensitive.