2019-01-23 07:43 AM
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 :smiling_face_with_smiling_eyes: