Skip to main content
Visitor II
December 9, 2021
Solved

hello everyone! I am using LSM6DSO in a small project for tilt control and interrupt generation.

  • December 9, 2021
  • 1 reply
  • 745 views

I use the register settings from the documentation:

1. Write 80h to FUNC_CFG_ACCESS // Enable access to embedded functions registers

2. Write 10h to EMB_FUNC_EN_A // Enable tilt detection

3. Write 10h to EMB_FUNC_INT1 // Tilt interrupt driven to INT1 pin

4. Write 80h to PAGE_RW // Enable latched mode for embedded functions

5. Write 00h to FUNC_CFG_ACCESS // Disable access to embedded functions registers

6. Write 02h to MD1_CFG // Enable embedded functions interrupt routing

7. Write 20h to CTRL1_XL // Turn on the accelerometer

// ODR_XL = 26 Hz, FS_XL = ±2 g

When I tilt the sensor, I get an interrupt only once. After that, the level on the interrupt pin remains high all the time. After the power reset, the interrupt works only once again.

Thank you for any help

    This topic has been closed for replies.
    Best answer by ATkal.1

    The answer is found:

    4. Record 80 hours in PAGE_RW // Enable lock mode for built-in functions:))

    1 reply

    ATkal.1AuthorAnswer
    Visitor II
    December 9, 2021

    The answer is found:

    4. Record 80 hours in PAGE_RW // Enable lock mode for built-in functions:))