Skip to main content
Visitor II
April 6, 2016
Question

LIS331 return always zero when I read axis data

  • April 6, 2016
  • 1 reply
  • 637 views
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
    This topic has been closed for replies.

    1 reply

    Visitor II
    September 20, 2016
    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.