I'm currently obtaining the Accelerometer X, Y, Z, Gyro X, Y, Z, and Temperature data via the FIFO. Most of the time it works well, especially at low sample rates (< 100Hz), however, I've noticed that when I set the rate to 1kHz the 9150 occasionally orders the registers incorrectly. Here's how I obtain data:
Upon every INT pin toggle (a sample from every specified register is placed in the FIFO, a.k.a. Data Ready), my microprocessor reads the # of bytes in the FIFO using the FIFOCount register. If it's greater than 140 (10 samples from the Acc, Gyro, and Temp) I read out 140 samples from the FIFO, exfil, and continue waiting for the INT pin toggle.
I've verified my microprocessor is not being overrun (resulting in FIFO overflow in 9150), and I know I'm not reading non-existent data from the FIFO due to the check of the FIFO Size and reading only that # of bytes.
Has anyone else seen this sort of behavior with "scrambled" data from the FIFO?
**Scrambled Data**
I know the data is scrambled because I use the FSYNC and place it in the LS bit of the Temp data. Most often I see this:
Ax
Ay
Az
Gx
Temp
Gy
Gz
- Log in to post comments
phpbb Topic ID
14760