Skip to main content
Visitor II
January 4, 2019
Question

LSM6DSO INTERRUPTS

  • January 4, 2019
  • 3 replies
  • 1120 views

Hi

I am currently working on LSM6DSO.

I am configuring it for wake up motion and Free fall interrupt generation in INT1 and INT2 pins.

I am configuring it with below configuration.

dataToWrite = 0x60;

    DemoApp_I2cWrite(CTRL1_XL, dataToWrite);

    dataToWrite = 0x60;

    DemoApp_I2cWrite(CTRL2_G, dataToWrite);

    dataToWrite = 0x10;

    DemoApp_I2cWrite(TAP_CFG0, dataToWrite);

    dataToWrite = 0x80;

    DemoApp_I2cWrite(TAP_CFG2, dataToWrite);

    dataToWrite = 0x00;

    DemoApp_I2cWrite(WAKE_UP_DUR, dataToWrite);

    dataToWrite = 0x02;

    DemoApp_I2cWrite(WAKE_UP_THS, dataToWrite);

    dataToWrite = 0x33;

    DemoApp_I2cWrite(FREE_FALL, dataToWrite);

    dataToWrite = 0x10;

    DemoApp_I2cWrite(MD1_CFG, dataToWrite);

    dataToWrite = 0x20;

    DemoApp_I2cWrite(MD2_CFG, dataToWrite);

Though i am also reading ALL_INT_SRC and WAKE_UP_SRC registers for confirmation of event generation.

My problem is i can see that wake up or free fall event is generated in ALL_INT_SRC and WAKE_UP_SRC registers but there is no signal on INT1 and INT2 pins.

I am using STM32L151 controller to detect the interrupt and set interrupt as rising edge interrupt.

Any help in that?

    This topic has been closed for replies.

    3 replies

    VBans.16Author
    Visitor II
    January 4, 2019

    Found the issues

    Visitor II
    February 5, 2019

    How did you solved the problem?

    VBans.16Author
    Visitor II
    February 26, 2019

    Problem was not from sensor side it was from my side, i was making error in addressing the particular register