FXLS8962: Multiple sample read using FIFO buffer

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

FXLS8962: Multiple sample read using FIFO buffer

3,254 Views
Reynir
Contributor I

Hello,

I am using the FRDM-K22F-AGMP03 development board to evaluate the FXLS8962 accelerometer. My intensions were to use a burst read operation to read the FIFO output data buffer and ran into a bug there. First two samples are unique but the following samples are all replica of the second sample. I found more information on the matter in the errata sheet (https://www.nxp.com/docs/en/errata/ES_FXLS8962AF.pdf).

I have two questions on the matter:

- I did not fully understand how to implement the workaround 2, are there any tips or examples where this method is implemented.

-   I'm also interested to know if the FXLS8964 and FXLS8974 have/will have this issue.

Thanks, 

Reynir

Labels (1)
0 Kudos
4 Replies

3,240 Views
JackITB
NXP Employee
NXP Employee

Hi Reynir,
The FIFO bug has been fully fixed on FXLS8964/74 so they will allow "large burst read" operation to collect all samples in a single transaction.

Regards, Jacques.

3,245 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Reynir,

The workaround recommends to read 6 bytes starting from register 0x0C (BUF_X_LSB) in one I2C burst read command:

Capture.JPG

This way you read out one sample of X, Y, Z-axis output data from the FIFO. This sequence needs to be repeated for all samples in the FIFO.

Best regards,

Tomas

0 Kudos

3,210 Views
PinkMagpie
Contributor I

Good Blog for sharing the experience and knowledge

 

greatpeople me

0 Kudos

3,230 Views
PinkMagpie
Contributor I

Your information is very interesting. Thank you for sharing.

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-1297824%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFXLS8962%3A%20Multiple%20sample%20read%20using%20FIFO%20buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1297824%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20using%20the%20FRDM-K22F-AGMP03%20development%20board%20to%20evaluate%20the%20FXLS8962%20accelerometer.%20My%20intensions%20were%20to%20use%20a%20burst%20read%20operation%20to%20read%20the%20FIFO%20output%20data%20buffer%20and%20ran%20into%20a%20bug%20there.%20First%20two%20samples%20are%20unique%20but%20the%20following%20samples%20are%20all%20replica%20of%20the%20second%20sample.%20I%20found%20more%20information%20on%20the%20matter%20in%20the%20errata%20sheet%20(%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Ferrata%2FES_FXLS8962AF.pdf)%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Ferrata%2FES_FXLS8962AF.pdf).%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20have%20two%20questions%20on%20the%20matter%3A%3C%2FP%3E%3CP%3E-%20I%20did%20not%20fully%20understand%20how%20to%20implement%20the%20workaround%202%2C%20are%20there%20any%20tips%20or%20examples%20where%20this%20method%20is%20implemented.%3C%2FP%3E%3CP%3E-%26nbsp%3B%20%26nbsp%3BI'm%20also%20interested%20to%20know%20if%20the%20FXLS8964%20and%20FXLS8974%20have%2Fwill%20have%20this%20issue.%3C%2FP%3E%3CP%3EThanks%2C%26nbsp%3B%3C%2FP%3E%3CP%3EReynir%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1297824%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-1298654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FXLS8962%3A%20Multiple%20sample%20read%20using%20FIFO%20buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1298654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EGood%20Blog%20for%20sharing%20the%20experience%20and%20knowledge%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.greatpeople-me.org%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3E%3CFONT%20color%3D%22%23CCFFFF%22%3Egreatpeople%20me%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1298445%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FXLS8962%3A%20Multiple%20sample%20read%20using%20FIFO%20buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1298445%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EYour%20information%20is%20very%20interesting.%20Thank%20you%20for%20sharing.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1298403%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FXLS8962%3A%20Multiple%20sample%20read%20using%20FIFO%20buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1298403%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Reynir%2C%3CBR%20%2F%3EThe%20FIFO%20bug%20has%20been%20fully%20fixed%20on%20FXLS8964%2F74%20so%20they%20will%20allow%20%22large%20burst%20read%22%20operation%20to%20collect%20all%20samples%20in%20a%20single%20transaction.%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%2C%20Jacques.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1298400%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FXLS8962%3A%20Multiple%20sample%20read%20using%20FIFO%20buffer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1298400%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Reynir%2C%3C%2FP%3E%0A%3CP%3EThe%20workaround%20recommends%20to%20read%206%20bytes%20starting%20from%20register%200x0C%20(BUF_X_LSB)%20in%20one%20I2C%20burst%20read%20command%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.JPG%22%20style%3D%22width%3A%20675px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.JPG%22%20style%3D%22width%3A%20675px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F148043iA9FF6446F0FD768E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.JPG%22%20alt%3D%22Capture.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThis%20way%20you%20read%20out%20one%20sample%20of%20X%2C%20Y%2C%20Z-axis%20output%20data%20from%20the%20FIFO.%20This%20sequence%20needs%20to%20be%20repeated%20for%20all%20samples%20in%20the%20FIFO.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBest%20regards%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETomas%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E