cancel
Showing results for 
Search instead for 
Did you mean: 

LIS331 return always zero when I read axis data

ludovicsocie
Associate
Posted on April 06, 2016 at 13:55

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.   

#lis331
1 REPLY 1
davidworden9
Associate II
Posted on September 20, 2016 at 21:09

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.