cancel
Showing results for 
Search instead for 
Did you mean: 

How to use LPF and HPF simultaneously on LSM6DSL accelerometer

JeongHoYong
Associate

Hi,
I’m working with the LSM6DSL sensor and I’d like to know if it’s possible to use both the Low-Pass Filter (LPF) and High-Pass Filter (HPF) at the same time in the accelerometer. If so, could someone explain how to configure it?

Thanks!

1 REPLY 1
Federica Bossi
ST Employee

Hi @JeongHoYong ,

To properly configure the LSM6DSL sensor, the following registers need to be set:

  • CTRL8_XL (17h)
    This register controls the high-pass path filter.
    The bandwidth column depends on the value of HPCF_XL[1:0]:
    • If HPCF_XL[1:0] = 00, the bandwidth relates to the slope filter.
    • If HPCF_XL[1:0] = 01, 10, or 11, the bandwidth refers to the high-pass (HP) filter.
  • CTRL1_XL (10h)
    This register is used to set the Output Data Rate (ODR), Full Scale range, and the LPF1 (Low Pass Filter 1).
  • Enabling the second LPF
    If you want to add a second low-pass filter, you can enable it via the CTRL8_XL (17h) register.

To review the possible values and configurations, please refer to the official sensor page:
LSM6DSL - STMicroelectronics

Specifically, in the datasheet, refer to:

  • Chapters 9.13 and 9.20 for detailed register characteristics
  • Section 5.4.2 for the sensor block diagram

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.