MMA8451Q interrupt read mode

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

MMA8451Q interrupt read mode

1,661 Views
maurogatti
Contributor I

Hello.

I configured the MMA8451Q with ODR = 800Hz, so I can read the acceleration's components with a 1,25 ms  sample period.

The  polling mode is ok, I can do a read with  800Hz sample frequency.

But I can do it in "interrupt mode" (I configured MMA8551 as described in AN4076) because I see the interrupt pulse every 24 ms (about 40 Hz).

Why? 

Thanks

Labels (1)
0 Kudos
1 Reply

1,394 Views
david_diaz
NXP Employee
NXP Employee

Hello Mauro,

Thank you very much for writing.

In this case, I highly recommend to use the sample project from the link below as a reference for your application:

https://community.nxp.com/docs/DOC-98836 

Please note that in the project, the interrupt mode is used.

Please let me know if you have any further question and I will be glad to help you.

 

Best Regards,

David

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-614437%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMMA8451Q%20%20interrupt%20read%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-614437%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello.%3C%2FP%3E%3CP%3EI%20configured%20the%20MMA8451Q%20with%20ODR%20%3D%20800Hz%2C%20so%20I%20can%20read%20the%20acceleration's%20components%20with%20a%201%2C25%20ms%20%26nbsp%3Bsample%20period.%3C%2FP%3E%3CP%3EThe%20%26nbsp%3Bpolling%20mode%20is%20ok%2C%20I%20can%20do%20a%20read%20with%20%26nbsp%3B800Hz%20sample%20frequency.%3C%2FP%3E%3CP%3EBut%20I%20can%20do%20it%20in%20%22interrupt%20mode%22%20(I%20configured%20MMA8551%20as%20described%20in%20AN4076)%20because%20I%20see%20the%20interrupt%20pulse%20every%2024%20ms%20(about%2040%20Hz).%3C%2FP%3E%3CP%3EWhy%3F%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-614437%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-614438%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MMA8451Q%20%20interrupt%20read%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-614438%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Mauro%2C%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20writing.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIn%20this%20case%2C%20I%20highly%20recommend%20to%20use%20the%20sample%20project%20from%20the%20link%20below%20as%20a%20reference%20for%20your%20application%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-98836%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-98836%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EPlease%20note%20that%20in%20the%20project%2C%20the%20interrupt%20mode%20is%20used.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20if%20you%20have%20any%20further%20question%20and%20I%20will%20be%20glad%20to%20help%20you.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3EDavid%3C%2FP%3E%3C%2FLINGO-BODY%3E