MMA8652FC FIFO Buffer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MMA8652FC FIFO Buffer

Jump to solution
3,706 Views
ands
Contributor I

Hi, I'm trying to read from the FIFO Buffer off of the MMA8652FC Accelerometer.

I currently have it set up where the Buffer mode is set to be a Fill Buffer and the Watermark is set to 32 samples. I also have F_READ (Fast Read mode) enabled, so that the data I'm reading in is only 8-bits.

I do understand that whenever F_MODE is greater than 0, the OUT_X_MSB (0x01) register becomes the root pointer to XYZ FIFO data.

With this in mind, when I try to read and access the FIFO samples from OUT_X_MSB, it only returns 0x80 96 times. So it's clear I'm accessing the FIFO data improperly, however I cannot figure out why.

Note that I am able to access the data normally with the FIFO buffer disabled

The code I am using to read off of the FIFO is this:

void accel_BufRead(uint8* Data_Ptr){

  uint8 numBytes=96; //96 because I'm reading 32 samples of 8-bit XYZ data thus 32*3=96

  

  uint8 Write_Buf[1] = {0};

  uint8 *Write_Ptr = &Write_Buf;

  Write_Buf[0] = 0x01;

  I2C_1_MasterWriteBuf(Addr, Write_Ptr, 1, I2C_1_MODE_NO_STOP);//Addr is the slave address, Write_Ptr is the register address, I2C_1_MODE_NO_STOP

                                                               //indicates a mode where it will execute an I2C transfer without a Stop

    while(0u == (I2C_1_MasterStatus() & I2C_1_MSTAT_WR_CMPLT)){} //Check if the write process was successful and completed

  I2C_1_MasterReadBuf(Addr, Data_Ptr, numBytes, I2C_1_MODE_REPEAT_START);//Addr is the slave address, Data_Ptr is where the data will be stored,

                                                                         //numBytes= 96 bytes of data expected to read, I2C_MODE_REPEAT_START

                                                                         //indicates mode where it will execute an I2C transfer

                                                                         //by sending a Repeat Start instead of a Start

    while(0u == (I2C_1_MasterStatus() & I2C_1_MSTAT_RD_CMPLT)){} //Check if the read process was successful and completed

  

    return;

}

Labels (1)
Tags (1)
1 Solution
3,291 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Andrew,

It is hard to say where the problem might be, but attached you can find my example code I just wrote to test it. Accelerometer setting can be found in the MMA8652FC_Init function.

Here you can see some screenshots illustrating correct behavior.

F_READ = 1, so the data is 8-bits only:

FIFO 8bit data.JPG.jpg

ODR is set to 800Hz, so the FIFO interrupt happens every 40 ms (1.25 ms x 32 samples):

FIFO interrupt.JPG.jpg

Let me know whether or not this helps, or if you have any other questions.

Regards,

Tomas

PS: If my answer helps to solve your question, please mark it as "Correct" or “Helpful”. Thank you.

View solution in original post

3 Replies
3,292 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Andrew,

It is hard to say where the problem might be, but attached you can find my example code I just wrote to test it. Accelerometer setting can be found in the MMA8652FC_Init function.

Here you can see some screenshots illustrating correct behavior.

F_READ = 1, so the data is 8-bits only:

FIFO 8bit data.JPG.jpg

ODR is set to 800Hz, so the FIFO interrupt happens every 40 ms (1.25 ms x 32 samples):

FIFO interrupt.JPG.jpg

Let me know whether or not this helps, or if you have any other questions.

Regards,

Tomas

PS: If my answer helps to solve your question, please mark it as "Correct" or “Helpful”. Thank you.

3,291 Views
ands
Contributor I

Hi Tomas,

Thank you so much for replying to my question. Your sample code made me realize that the read function provided in Cypress' PSoC library just wasn't doing what I needed it to do. So I rewrote their read function and it seems like it is finally properly functioning. Thank you so much! This is the data output I get now.

FIFO Data.PNG.png

I polled the INT1 Pin to see if the interrupt was functioning properly and for the most part it is. There are times where it gets a strange signal where it goes low and high and low and high again. Here's a picture of what I'm talking about:

FIFO_INT Signal.png

Do you have any ideas of why that's happening? Just to make sure, the only thing I need to clear the interrupt is read the F_STATUS (0x00) register right?

0 Kudos
3,291 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Andrew,

Glad to see it works now. I would recommend reading the FIFO only, as you can see in my sample code. Then you should not get the second pulse on the INT1 pin.


I hope it helps.


Regards,

Tomas

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-363591%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMMA8652FC%20FIFO%20Buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363591%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20I'm%20trying%20to%20read%20from%20the%20FIFO%20Buffer%20off%20of%20the%20MMA8652FC%20Accelerometer.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20currently%20have%20it%20set%20up%20where%20the%20Buffer%20mode%20is%20set%20to%20be%20a%20Fill%20Buffer%20and%20the%20Watermark%20is%20set%20to%2032%20samples.%20I%20also%20have%20F_READ%20(Fast%20Read%20mode)%20enabled%2C%20so%20that%20the%20data%20I'm%20reading%20in%20is%20only%208-bits.%3C%2FP%3E%3CP%3EI%20do%20understand%20that%20whenever%20F_MODE%20is%20greater%20than%200%2C%20the%20OUT_X_MSB%20(0x01)%20register%20becomes%20the%20root%20pointer%20to%20XYZ%20FIFO%20data.%3C%2FP%3E%3CP%3EWith%20this%20in%20mind%2C%20when%20I%20try%20to%20read%20and%20access%20the%20FIFO%20samples%20from%20OUT_X_MSB%2C%20it%20only%20returns%200x80%2096%20times.%20So%20it's%20clear%20I'm%20accessing%20the%20FIFO%20data%20improperly%2C%20however%20I%20cannot%20figure%20out%20why.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ENote%20that%20I%20am%20able%20to%20access%20the%20data%20normally%20with%20the%20FIFO%20buffer%20disabled%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThe%20code%20I%20am%20using%20to%20read%20off%20of%20the%20FIFO%20is%20this%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CPRE%20__default_attr%3D%22c%2B%2B%22%20__jive_macro_name%3D%22code%22%20class%3D%22jive_text_macro%20jive_macro_code%20_jivemacro_uid_14256303581303854%22%20jivemacro_uid%3D%22_14256303581303854%22%20modifiedtitle%3D%22true%22%3E%0A%3CP%3Evoid%20accel_BufRead(uint8*%20Data_Ptr)%7B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20uint8%20numBytes%3D96%3B%20%2F%2F96%20because%20I'm%20reading%2032%20samples%20of%208-bit%20XYZ%20data%20thus%2032*3%3D96%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20uint8%20Write_Buf%5B1%5D%20%3D%20%7B0%7D%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20uint8%20*Write_Ptr%20%3D%20%26amp%3BWrite_Buf%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20Write_Buf%5B0%5D%20%3D%200x01%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20I2C_1_MasterWriteBuf(Addr%2C%20Write_Ptr%2C%201%2C%20I2C_1_MODE_NO_STOP)%3B%2F%2FAddr%20is%20the%20slave%20address%2C%20Write_Ptr%20is%20the%20register%20address%2C%20I2C_1_MODE_NO_STOP%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2F%2Findicates%20a%20mode%20where%20it%3CSPAN%20style%3D%22font-size%3A%209pt%3B%20line-height%3A%2012pt%3B%22%3E%20will%20execute%20an%20I2C%20transfer%20without%20a%20Stop%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20while(0u%20%3D%3D%20(I2C_1_MasterStatus()%20%26amp%3B%20I2C_1_MSTAT_WR_CMPLT))%7B%7D%20%2F%2FCheck%20if%20the%20write%20process%20was%20successful%20and%20completed%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20I2C_1_MasterReadBuf(Addr%2C%20Data_Ptr%2C%20numBytes%2C%20I2C_1_MODE_REPEAT_START)%3B%2F%2FAddr%20is%20the%20slave%20address%2C%20Data_Ptr%20is%20where%20the%20data%20will%20be%20stored%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2F%2FnumBytes%3D%2096%20bytes%20of%20data%20expected%20to%20read%2C%20I2C_MODE_REPEAT_START%20%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2F%2Findicates%20mode%20where%20it%3CSPAN%20style%3D%22font-size%3A%209pt%3B%20line-height%3A%2012pt%3B%22%3E%20will%20execute%20an%20I2C%20transfer%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2F%2Fby%20sending%20a%20Repeat%20Start%20instead%20of%20a%20Start%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20while(0u%20%3D%3D%20(I2C_1_MasterStatus()%20%26amp%3B%20I2C_1_MSTAT_RD_CMPLT))%7B%7D%20%2F%2FCheck%20if%20the%20read%20process%20was%20successful%20and%20completed%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20return%3B%3C%2FP%3E%0A%3CP%3E%7D%3C%2FP%3E%0A%0A%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-363591%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAccelerometers%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363594%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MMA8652FC%20FIFO%20Buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363594%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Andrew%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20lang%3D%22CS%22%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%22%3EGlad%20to%20see%20it%20works%20now.%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%22%3EI%20would%20recommend%20reading%20the%20FIFO%20only%2C%20as%20you%20can%20see%20in%20my%20sample%20code.%20Then%20you%20should%20not%20get%20the%20second%20pulse%20on%20the%20INT1%20pin.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%22%3EI%20hope%20it%20helps.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%22%3ERegards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%22%3ETomas%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363593%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MMA8652FC%20FIFO%20Buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363593%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Tomas%2C%3C%2FP%3E%3CP%3EThank%20you%20so%20much%20for%20replying%20to%20my%20question.%20Your%20sample%20code%20made%20me%20realize%20that%20the%20read%20function%20provided%20in%20Cypress'%20PSoC%20library%20just%20wasn't%20doing%20what%20I%20needed%20it%20to%20do.%20So%20I%20rewrote%20their%20read%20function%20and%20it%20seems%20like%20it%20is%20finally%20properly%20functioning.%20Thank%20you%20so%20much!%20This%20is%20the%20data%20output%20I%20get%20now.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FIFO%20Data.PNG.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FIFO%20Data.PNG.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F51194i11B9CEEED9555A81%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22FIFO%20Data.PNG.png%22%20alt%3D%22FIFO%20Data.PNG.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20polled%20the%20INT1%20Pin%20to%20see%20if%20the%20interrupt%20was%20functioning%20properly%20and%20for%20the%20most%20part%20it%20is.%20There%20are%20times%20where%20it%20gets%20a%20strange%20signal%20where%20it%20goes%20low%20and%20high%20and%20low%20and%20high%20again.%20Here's%20a%20picture%20of%20what%20I'm%20talking%20about%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FIFO_INT%20Signal.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FIFO_INT%20Signal.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F51195iB7CD001108CA9239%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22FIFO_INT%20Signal.png%22%20alt%3D%22FIFO_INT%20Signal.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EDo%20you%20have%20any%20ideas%20of%20why%20that's%20happening%3F%20Just%20to%20make%20sure%2C%20the%20only%20thing%20I%20need%20to%20clear%20the%20interrupt%20is%20read%20the%20F_STATUS%20(0x00)%20register%20right%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363592%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MMA8652FC%20FIFO%20Buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363592%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Andrew%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIt%20is%20hard%20to%20say%20where%20the%20problem%20might%20be%2C%20but%20attached%20you%20can%20find%20my%20example%20code%20I%20just%20wrote%20to%20test%20it.%20Accelerometer%20setting%20can%20be%20found%20in%20the%20MMA8652FC_Init%20function.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EHere%20you%20can%20see%20some%20screenshots%20illustrating%20correct%20behavior.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EF_READ%20%3D%201%2C%20so%20the%20data%20is%208-bits%20only%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FIFO%208bit%20data.JPG.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FIFO%208bit%20data.JPG.jpg%22%20style%3D%22width%3A%20955px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F51108i3CF8434A89DBC2FA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22FIFO%208bit%20data.JPG.jpg%22%20alt%3D%22FIFO%208bit%20data.JPG.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EODR%20is%20set%20to%20800Hz%2C%20so%20the%20FIFO%20interrupt%20happens%20every%2040%20ms%20(1.25%20ms%20x%2032%20samples)%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FIFO%20interrupt.JPG.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22FIFO%20interrupt.JPG.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F51109i9B06B359E16BBE14%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22FIFO%20interrupt.JPG.jpg%22%20alt%3D%22FIFO%20interrupt.JPG.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22background%3A%20white%3B%22%3ELet%20me%20know%20whether%20or%20not%20this%20helps%2C%20or%20if%20you%20have%20any%20other%20questions.%3C%2FP%3E%3CP%20style%3D%22background%3A%20white%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22background%3A%20white%3B%22%3ERegards%2C%3C%2FP%3E%3CP%20style%3D%22background%3A%20white%3B%22%3ETomas%3C%2FP%3E%3CP%20style%3D%22background%3A%20white%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22background%3A%20white%3B%22%3E%3CSPAN%20style%3D%22font-size%3A%2013px%3B%20font-family%3A%20Arial%2C%20sans-serif%3B%20color%3A%20%23333333%3B%22%3E%3CEM%3E%3CSPAN%20style%3D%22color%3A%20%233d3d3d%3B%20font-style%3A%20inherit%3B%20font-size%3A%2011px%3B%20font-family%3A%20inherit%3B%20font-weight%3A%20inherit%3B%22%3E%3CEM%3EPS%3A%3CSPAN%20class%3D%22Apple-converted-space%22%20style%3D%22font-weight%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-family%3A%20inherit%3B%22%3E%3CSPAN%20class%3D%22Apple-converted-space%22%3E%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-weight%3A%20inherit%3B%20font-style%3A%20inherit%3B%20font-size%3A%2011px%3B%20font-family%3A%20inherit%3B%20color%3A%20%233d3d3d%3B%22%3EIf%20my%20answer%20helps%20to%20solve%20your%20question%2C%20please%20mark%20it%20as%20%22Correct%22%20or%20%E2%80%9CHelpful%E2%80%9D.%20Thank%20you.%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E