2018-07-11 11:16 PM
Dear all - especially STM developers,
I recently integrated an LIS331HH sensor. It seams to be very nice sensor! But anyway while reading LIS331 Datasheet, I found that information required for proper MCU driver implementation (especially interrupt-related information) missing.
Even though some information become clear during repeated reading of Datasheet, something remains unclear. Even though I was able to find proper settings experimentally, it took some time...
Some points:
https://github.com/szotsaki/LIS331/blob/master/src/LIS331.cpp
) - missing explicite range declaration in Datasheet causes confusionPlease, could you clarify here or extend the datasheet?
Thank you!
Jan
2018-07-27 02:05 AM
The two's complement output (OUT_X_L, OUT_X_H, ...) - not all 16 bit is used, the LIS331HH has 12-bit output left-adjusted in 16-bit output register. The 4 right bits always 0.
2018-08-02 04:42 AM
Thank you for clarification!
That means: the range is -4095 to +4096; the result is stored as two's complement in 16-bit register as int16 -> right 4 bits are 0 for positive values and 1 for negative. Right?
This will be very helpful for correct implementation, but it lso supports my statement about lack of detail in LIS331 DS.