cancel
Showing results for 
Search instead for 
Did you mean: 

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

ATkal.1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
ATkal.1
Associate

The answer is found:

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

View solution in original post

1 REPLY 1
ATkal.1
Associate

The answer is found:

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