cancel
Showing results for 
Search instead for 
Did you mean: 

LSM303AGR give interrupt if movement falls below threshold.

Jvan .21
Associate

For my project I want the LSM303AGR give me an interrupt if the read value of the X-axis falls BELOW the given threshold.

For example:

I have my threshold on 0.8.

I bind the interrupt to to XLow and use movementrecognition.

Now an interrupt is given if the x-axis goes OVER or is HIGHER than 0.8 but I want it to give an interrupt when it falls BELOW 0.8. Am I missing something or can this not be inverted?

Greetings,

Jaron

1 REPLY 1
Eleon BORLINI
ST Employee

Hi @Jvan .2​ , you could enable the H_LACTIVE of the CTRL_REG6_A (25h) register: the INT pin will stay high until the threshold will be exceeded from bottom to up. It is a reverse way to use the interrupt. Regards