Skip to main content
Visitor II
May 29, 2020
Question

LIS3DSH Wake-up exemple interrupt only once ?

  • May 29, 2020
  • 1 reply
  • 968 views

Hello all,

I have set up the "Wake-up" example that you propose on page 75 of the technical documentation (see attached picture).

My problem is that the interrupt during a movement is executed only once. How can I make sure that an interrupt is generated at the next movement, and that the "internal program" of the accelerometer is executed in a loop and not only once? 

Thanks :smiling_face_with_smiling_eyes:

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 29, 2020

    Hi @Rgerg.1​ , I think you have some different ways to get a wake-up interrupt loop:

    • use the instruction command CONT;

    0693W000001piswQAA.png

    • you could insert the state machine in a while loop (via software);
    • use the State Machine 2 as a sub-routine of State Machine 1, which can be executed multiple times (as shown in the AN3393 p.61), but is a complex way to manage multiple wake-up interrupts...
    • you could check these slides if there is something interesting for you.

    Regards