2021-05-18 06:36 AM
Hello,
I am using the pedometer function in the LSM6DSOX.
I want to change the debounce steps register value (default =10).
I have changed the value to 15 but i am already seeing some delta steps = 11 (<15).
Is there on order to change the debounce steps value?
I'm doing like this:
best regards
Yann
Solved! Go to Solution.
2021-05-19 02:36 AM
Hi Yann @YTreg.1 ,
did you wrote bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h) to enable access to embedded functions registers, before writing the debounce threshold?
can you check that you follow example on page 149 of datasheet to write it?
Niccolò
2021-05-19 02:36 AM
Hi Yann @YTreg.1 ,
did you wrote bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h) to enable access to embedded functions registers, before writing the debounce threshold?
can you check that you follow example on page 149 of datasheet to write it?
Niccolò
2021-05-19 02:41 AM
Hi,
yes i have done that.
Finally, it was a mistake in the addressing PAGE_SEL register.
Now i'm writing in the good register and it's working.
Best regards,
Yann
2021-05-19 02:58 AM
Hi Yann @YTreg.1 ,
glad to hear everything is ok, it is a common mistake to forget that.
Niccolò
p.s. if you found the solution to your problem, you can select a best answer to help other users with a similar problem