2023-05-19 02:03 AM - edited 2023-11-20 05:06 AM
From this picture in application note looks like HP_REF_MODE should not have any effect to the output data when purple path is selected.
But in tests we see differences in output data with and without HP_REF_MODE set to 1.
Solved! Go to Solution.
2023-05-21 11:32 PM
Hi @MBoch.2 ,
The documentation doesn't say anything about HP_REF_MODE in case of LPF because this is not a possible configuration, so if you use that bit in the purple path you will get inconsistent results. If you want that the HP_REF_MODE works as expected you have to be in the blue path.
Thank you for pointing out that the image in the AN may be confusing, we will edit it or explicitly write not to set HP_REF_MODE for LPF.
Please click on Select as Best at the bottom of this post to help other users with the same issue to find the answer faster 🙂
2023-05-19 06:28 AM
Hi @MBoch.2 ,
Welcome to ST Community 🙂
When you enable the HP_REF_MODE bit, the output data is calculated as the difference between the measured acceleration and the output values captured when reference mode was enabled. In this way only the difference is applied without any filtering.
However, setting this bit to '1' makes sense only when you are in the HP path (the blue one in the AN graph).
When you are in the purple path you don't need to activate the HP_REF_MODE.
If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster!
2023-05-19 08:43 AM
Thanks for answer, but this is still not clear for me what is happening if HP_REF_MODE is set for purple path on the picture. I'm interesting what will be the real affect to the output data in this particular case. The documentation says everything about the combination HPF and HP_REF_MODE, but nothing about HP_REF_MODE in case of LPF. Indirectly from the picture it seems for me that it suppose to be ignored if purple path (low-pass filter) is selected, but from actual data I see that it has an effect, and actual data not really matches to the description of HP_REF_MODE for HP, while for HP mode the HP_REF_MODE works as expected.
2023-05-21 11:32 PM
Hi @MBoch.2 ,
The documentation doesn't say anything about HP_REF_MODE in case of LPF because this is not a possible configuration, so if you use that bit in the purple path you will get inconsistent results. If you want that the HP_REF_MODE works as expected you have to be in the blue path.
Thank you for pointing out that the image in the AN may be confusing, we will edit it or explicitly write not to set HP_REF_MODE for LPF.
Please click on Select as Best at the bottom of this post to help other users with the same issue to find the answer faster 🙂