cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSO INTERRUPTS

VBans.16
Associate II

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?

3 REPLIES 3
VBans.16
Associate II

Found the issues

gabriel.arnautu
Associate II

How did you solved the problem?

VBans.16
Associate II

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