2021-12-09 02:44 AM
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
Solved! Go to Solution.
2021-12-09 02:56 AM
The answer is found:
4. Record 80 hours in PAGE_RW // Enable lock mode for built-in functions:))
2021-12-09 02:56 AM
The answer is found:
4. Record 80 hours in PAGE_RW // Enable lock mode for built-in functions:))