Skip to main content
EOved.1
Associate II
Dec 5, 2021 11:41 AM UTC
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.

..

This topic has been closed for replies.
DSull.3
DSull.3Best answer
Visitor II
Dec 10, 2021 3:37 PM UTC

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
Dec 10, 2021 3:37 PM UTC

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
Dec 14, 2021 10:13 AM UTC

Hi @Community member​ ,

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

-Eleon

EOved.1
EOved.1Author
Associate II
Dec 14, 2021 11:47 AM UTC

Hi.

I got the help I needed , issue is resolved.

Thanks