cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an order to change the debounce steps value at the initialization of the LSM6DSOX?

YTreg.1
Associate

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:

  • enable the accelerometer
  • change the debounce steps value in 0x84 register
  • enable the pedometer function

best regards

Yann

1 ACCEPTED SOLUTION

Accepted Solutions
niccolò
ST Employee

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ò

View solution in original post

3 REPLIES 3
niccolò
ST Employee

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ò

YTreg.1
Associate

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

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