2016-04-06 04:55 AM
Hi everybody,
I use a LIS331 with I2C communication. I can read and write the configuration register (CTRL_REG1 for example) but when I want to read any data register, the read value is always zero. CTRL_REG1 value is 07h, therefore the axis are enabled. I have tried to read STATUS_REG and the value is zero. Anyone has had this problem ? Have I forgotten a step in configuration or something like that ? Thanks in advance. #lis3312016-09-20 12:09 PM
Did you ever find a solution to this?
I have a similar phenomenon with the AIS3624DQ. I am able to read the X-axis, but the Y and Z are always returning zero. When I read out the CTRL_REG1 register, I see that X, Y, and Z are all enabled, so they all should be giving me values.Any insight? Thanks!EDIT: Fixed it. Turned out that the bit-field I had within my CTRL_REG1 structure had the bits reversed, so the Y and Z bits weren't being set.