Skip to main content
Visitor II
June 2, 2020
Question

How does function LIS2HH12 reference and high pass filter?

  • June 2, 2020
  • 1 reply
  • 719 views

I am developing a LIS2HH12 library and I have set all the posibles configurations. I don't understand why when I set the reference and active the high pass filter the output registers have a wrong value.

I have did test and I see a strange behaviour, it's like with diferents references value I get the same value on the output register. I think it's because LIS2HH12 doesn't use the reference like a linear value.

This behaviour is with the Reference Signal for filtering

    This topic has been closed for replies.

    1 reply

    ST Employee
    June 4, 2020

    Hi @Jose Francisco Marti Martín​ , did you already double-check your configurations with the settings described in the AN4662 p. 17 (about the reference signal for the filter? Although not directly related to the HP filter, I suggest you to check also the Github C file lis2hh12_self_test.c for the overall filter configuration.

    /* Configure filtering chain */
     /* Accelerometer data output- filter path / bandwidth */ 
     lis2hh12_xl_filter_aalias_bandwidth_set(&dev_ctx, LIS2HH12_AUTO);
     lis2hh12_xl_filter_out_path_set(&dev_ctx, LIS2HH12_FILT_LP);
     lis2hh12_xl_filter_low_bandwidth_set(&dev_ctx, LIS2HH12_LP_ODR_DIV_400);
     /* Accelerometer interrrupt - filter path / bandwidth */
     lis2hh12_xl_filter_int_path_set(&dev_ctx, LIS2HH12_HP_DISABLE);

    Regards