Skip to main content
Visitor II
September 16, 2025
Question

How to use LPF and HPF simultaneously on LSM6DSL accelerometer

  • September 16, 2025
  • 1 reply
  • 590 views

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!

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    September 18, 2025

    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