2021-03-17 03:28 AM
Hi,
We are running a vibration analysis system based on the LSM6DS3. This is FIFO based, and everything works as expected. Application is accel only.
However when enabling the high pass filter from the digital composite filter, all readings out of the FIFO are 0. Data is still provided at expected intervals. Clearly the data has values ABOVE filter.
Should enabling the filtering not be as simple as writing the correct value to register CTRL8_XL?
something like (0x17, 0b00100100). We tried configuring before starting accel (0x10) and / or fifo (0x0A). Same result.
Many thanks for any input.
br
Christophe
Solved! Go to Solution.
2021-03-17 04:42 AM
Hi Christophe @CHuyg.1 ,
I see you have correctly enabled the HP_SLOPE_XL_EN bit of the CTRL8_XL register, selecting the 01b HPCF_XL [1:0] bits.
The high-pass cut-off frequency should be about ODR_XL / 100, so it depends on the ODR you set (the higher the ODR, the higher the cut-off frequency).
If it would be an issue related to the cut-off frequency, you could try setting 11b in the register, so that it will be reduced to ODR_XL/400 Hz.
Please note also that, to enable the high-pass and low-pass digital filters, it is recommended to set to 1 the SLOPE_FDS bit and set to 0 the FUNC_EN bit, as reported in the AN4650 application note, p.28.
Let me know if this can help you.
-Eleon
2021-03-17 04:42 AM
Hi Christophe @CHuyg.1 ,
I see you have correctly enabled the HP_SLOPE_XL_EN bit of the CTRL8_XL register, selecting the 01b HPCF_XL [1:0] bits.
The high-pass cut-off frequency should be about ODR_XL / 100, so it depends on the ODR you set (the higher the ODR, the higher the cut-off frequency).
If it would be an issue related to the cut-off frequency, you could try setting 11b in the register, so that it will be reduced to ODR_XL/400 Hz.
Please note also that, to enable the high-pass and low-pass digital filters, it is recommended to set to 1 the SLOPE_FDS bit and set to 0 the FUNC_EN bit, as reported in the AN4650 application note, p.28.
Let me know if this can help you.
-Eleon
2021-03-18 05:04 AM
Thanks a lot, I entirely overlooked FUNC_EN and SLOPE_FDS, I thought that was the bit for the embedded registers, but it is a specific one to enable the filtering. All good now! Xtof