FIFO Accelerometer Data

By naps69 , 20 September 2012

After configuring the FIFO Enable register correctly, I enabled the Temp, Accelerometer, and Gyro measurements to be placed in the FIFO. I then set the INT pin to toggle on every data ready. Once the FIFO depth exceeds that of a set of samples (14 bytes), I grab the data. The order in which I should see measurements in the FIFO are as follows:

ACCEL_XOUT_H
ACCEL_XOUT_L
ACCEL_YOUT_H
ACCEL_YOUT_L
ACCEL_ZOUT_H
ACCEL_ZOUT_L
TEMP_OUT_H
TEMP_OUT_L
GYRO_XOUT_H
GYRO_XOUT_L
GYRO_YOUT_H
GYRO_YOUT_L
GYRO_ZOUT_H
GYRO_ZOUT_L

The good news is that I do believe I am seeing all the data (I use FSYNC in the LSB of the Temp data, so I can see patterns).

My problem is this: the ACCEL_XOUT_H and ACCEL_XOUT_L are always 0x00.

I've tried various sample rates to make sure that wasn't the problem, and I've disabled various registers such as Temp and Gyro from going into the FIFO so I just get Accelerometer data. No matter what I do, the X-axis accelerometer data is 0x00 0x00 (no wavering at all).

Any ideas?

phpbb Topic ID
14697