LIS331 return always zero when I read axis data
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-04-06 4:55 AM
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
Labels:
- Labels:
-
Accelerometers
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-09-20 12:09 PM
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.