cancel
Showing results for 
Search instead for 
Did you mean: 

LIS3DSH Wake-up exemple interrupt only once ?

Rgerg.1
Associate

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:

1 REPLY 1
Eleon BORLINI
ST Employee

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