cancel
Showing results for 
Search instead for 
Did you mean: 

FSM#4: How to… structure your FSM: define the flow

Eleon BORLINI
ST Employee

To get a deeper insight of the FSM, a brief explanation of the "instruction section" is needed. It's one of the last steps towards a complete understanding of the LSM6DSO FSM.

Instruction section is made by a set of commands and conditions. When the interpreter executes a command (structured on 8 bits and sometimes followed by parameters), the program pointer is set to next command/condition line and the interpreter evaluates the new line immediately.

Conditions are structured on 8 bits: 4 bits for RESET condition and 4 bits for NEXT condition. If RESET is true, the program pointer is set to last configured Reset Point (can be changed in runtime by using CRP and SRP commands); if NEXT is true, the program pointer is set to next line and the interpreter evaluates the new line when next sample occurs; finally, if NONE, then the program pointer does not change and the interpreter evaluates the same line when next sample occurs.

If you want to practical implement a FSM on LSM6DSO, please follow the next posts 😊

0690X000006DDItQAO.png

Link: https://www.st.com/content/ccc/resource/technical/document/application_note/group1/df/fb/3f/a8/29/9f/44/73/DM00537590/files/DM00537590.pdf/jcr:content/translations/en.DM00537590.pdf

0 REPLIES 0