2020-12-02 09:04 PM
Since the default value of the register is not changing, the state machine is not enabling and thus, I am not getting any interrupt.
Solved! Go to Solution.
2020-12-09 09:22 PM
Unfortunately, trying with another device is not really possible, specially when all the other registers are working properly. I will try if something is possible.
I have trouble writing into Registers 1 and 3. register 2 is not a part of the wake up state machine, so I need not use it, but I tried writing to it with your suggestion. That doesn't work either.
2020-12-09 10:26 PM
Can you please check if you can write to this register?
Is there any sequence in which the registers need to be written or any steps to be followed?
2020-12-09 11:20 PM
Hi @Community member ,
I actually tried to read this registers and I'm able to do it, that's why I'm running out of suggestions.
By the way, you can for example refer to the double-tap recognition in the DT0077, p.3: in this example, CTRL_REG3 is written after CTRL_REG4 and CTRL_REG1 is written at the end of the configuration.
-Eleon
2020-12-10 02:37 AM
I guess, the problem is in writing and not reading. thank you for sharing this. I will try it and come back. :)
Is there any such Design Tip for the "wake Up" state Machine? that would really be helpful
2020-12-10 03:35 AM
I tried writing the registers following this pattern, register 4, 3, 5 then the threshold and mask and sett registers. in that case only the 3 control registers were written successfully. trying to write ST1 values and register 1 at the end didn't solve my problem. I am still unable to write register 1 and now with this pattern, threshold, mask and sett registers
2020-12-11 03:33 AM
Hi Eleon,
I tried with a different sensor, but that has the same issue. Is there any dependency for register 1 to be written? is there something I am missing?
2020-12-23 06:30 AM
The configuration should be ok...
-Eleon
2021-01-06 09:44 PM
Hi Eleon,
I am still stuck on this. Since you tried writing into register 1, can you send me a code snippet or sequence in which u enabled the state machine?
It would be really helpful
2021-01-11 08:43 AM
Hi @Community member ,
Back to you after internal alignment. Can you confirm you are setting the CTRL_REG1 register (the one that enable the FSM) as last register writing step (you should then check the content of the other registers, if it still doesn't work).
Moreover, from your previously-shared code, it seems you are using the FIFO... can you please try to disable it and check you you face again these issues?
-Eleon
2021-01-13 04:24 AM
Hi, I have fixed the isuse and the state machine works fine. It was some problem with I2C. Thak you for your support throughout :)