2021-09-17 01:43 AM
How to configure ISM330DLC registers to use the INT1 for Free-fall and tilt event?
2021-09-24 06:54 AM
Hi @abali.1 ,
you should
check the datasheet for further details
let me know if this helps
Niccolò
2021-09-24 09:58 AM
Dear @niccolo.ruffini ,
Thanks a lot for the reply.
I have gone through the datasheet in the last one week and found the same configuration for the Free-fall and Tilt interrupt.
I am still struggling and unable to get the interrupts. I am able to get data-ready interrupt for accelerometer only.
Please help.
Thanks.
2021-09-27 01:21 AM
Hi @abali.1 ,
can you check during execution if the registers involved are at the expected value?
maybe there is some function that modifies the values
Niccolò
2021-09-27 04:25 AM
Hi @niccolo.ruffini ,
Thanks for your comment.
The values to the registers 0x5C, 0x5D, 0x5E and 0x5F are always constant to 0x00, 0x00, 0x04 and 0xC2.
These registers are not getting affected when I try to set or clear the bits.
I tried to write and then read in a loop, but not getting the value what I tried to write.
Any suggestion?
2021-09-27 05:27 AM
Hi @abali.1 ,
even if the value in register 5Fh should route the interrupt to INT2, if you have problems writing the registers, maybe you should backtrack and fix that problem first.
try to check if the values written are what you expect (by debugging the code, or with an oscilloscope)
Niccolò