Skip to main content
Visitor II
January 21, 2020
Question

LSM303AGR give interrupt if movement falls below threshold.

  • January 21, 2020
  • 1 reply
  • 660 views

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

    This topic has been closed for replies.

    1 reply

    ST Employee
    March 30, 2020

    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