Skip to main content
EOved.1
Associate II
December 5, 2021
Solved

Dear Sir. I am using LSM6DSL , The pedometer routine works fine. Ho do I reset the pedometer's counter., The section 6.1 in an5040 is confusing. When the ****_RST_STEP of Reg CTRL10_C is reset. Please Advise.

  • December 5, 2021
  • 3 replies
  • 997 views

..

This topic has been closed for replies.
Best answer by DSull.3

Hi, in the AN5040 the following is reported:

The step count is not reset to zero when the accelerometer is configured in Power-Down or the pedometer is disabled; it can be reset to zero by setting the ****_RST_STEP bit of the CTRL10_C register to 1. After the counter resets, the ****_RST_STEP bit is not automatically set back to 0.

This means that you have to configure that bit to 1 in order to reset the step counter (or power off the device), but if you want to use it after this reset, you have to turn manually that bit to 0. Is this your doubt?

3 replies

DSull.3
DSull.3Best answer
Visitor II
December 10, 2021

Hi, in the AN5040 the following is reported:

The step count is not reset to zero when the accelerometer is configured in Power-Down or the pedometer is disabled; it can be reset to zero by setting the ****_RST_STEP bit of the CTRL10_C register to 1. After the counter resets, the ****_RST_STEP bit is not automatically set back to 0.

This means that you have to configure that bit to 1 in order to reset the step counter (or power off the device), but if you want to use it after this reset, you have to turn manually that bit to 0. Is this your doubt?

Eleon BORLINI
ST Employee
December 14, 2021

Hi @Community member​ ,

did @DSull.3​ helped you with your issue?

-Eleon

EOved.1
EOved.1Author
Associate II
December 14, 2021

Hi.

I got the help I needed , issue is resolved.

Thanks