2020-06-02 05:08 AM
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
2020-06-04 03:08 AM
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