MMA8652FC motion detection interrupt with HPF enabled

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

MMA8652FC motion detection interrupt with HPF enabled

Jump to solution
2,537 Views
carlodipasquale
Contributor I

Good morning

 

I have many interrupts, as if  HPF filter is bypassed (see log file annexed)

If I see acceleration data, they are filtered correctly (see Z axis).

What's wrong with my settings?

 

Carlo Di Pasquale

Original Attachment has been moved to: Motion_test.txt.zip

Labels (1)
0 Kudos
1 Solution
2,272 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Carlo,

The motion detection function is an analysis of low-pass filtered data only, even if the high-pass filter is enabled (HPF_OUT = 1). I would recommend using the transient detection function instead as it analyzes high-pass filtered data unless the HPF_BYP bit is set. For more information on the transient detection function including example register setting please refer to the AN4071.

I hope it helps.

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

0 Kudos
1 Reply
2,273 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Carlo,

The motion detection function is an analysis of low-pass filtered data only, even if the high-pass filter is enabled (HPF_OUT = 1). I would recommend using the transient detection function instead as it analyzes high-pass filtered data unless the HPF_BYP bit is set. For more information on the transient detection function including example register setting please refer to the AN4071.

I hope it helps.

Regards,

Tomas


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

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-363974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMMA8652FC%20motion%20detection%20interrupt%20with%20HPF%20enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EGood%20morning%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20many%20interrupts%2C%20as%20if%26nbsp%3B%20HPF%20filter%20is%20bypassed%20(see%20log%20file%20annexed)%3C%2FP%3E%3CP%3EIf%20I%20see%20acceleration%20data%2C%20they%20are%20filtered%20correctly%20(see%20Z%20axis).%3C%2FP%3E%3CP%3EWhat's%20wrong%20with%20my%20settings%3F%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECarlo%20Di%20Pasquale%3C%2FP%3E%3CP%3E%3CSTRONG%3EOriginal%20Attachment%20has%20been%20moved%20to%3A%20%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-338685%22%20target%3D%22_blank%22%3EMotion_test.txt.zip%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-363974%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-363975%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MMA8652FC%20motion%20detection%20interrupt%20with%20HPF%20enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363975%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Carlo%2C%3C%2FP%3E%3CP%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%3EThe%20motion%20detection%20function%20is%20an%20analysis%20of%20low-pass%20filtered%20data%20only%2C%20even%20if%20the%20high-pass%20filter%20is%20enabled%20(HPF_OUT%20%3D%201).%20I%20would%20recommend%20using%20the%20transient%20detection%20function%20instead%20as%20it%20analyzes%20high-pass%20filtered%20data%20unless%20the%20HPF_BYP%20bit%20is%20set.%20For%20more%20information%20on%20the%20transient%20detection%20function%20including%20example%20register%20setting%20please%20refer%20to%20the%3CSPAN%20class%3D%22apple-converted-space%22%3E%20%3CA%20href%3D%22http%3A%2F%2Fcache.freescale.com%2Ffiles%2Fsensors%2Fdoc%2Fapp_note%2FAN4071.pdf%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAN4071%3C%2FA%3E.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%209.0pt%3B%20font-family%3A%20'Helvetica'%2C'sans-serif'%3B%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%20font-weight%3A%20inherit%3B%22%3EI%20hope%20it%20helps.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%20font-weight%3A%20inherit%3B%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%20font-weight%3A%20inherit%3B%22%3ERegards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%20font-weight%3A%20inherit%3B%22%3ETomas%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%20font-weight%3A%20inherit%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-style%3A%20inherit%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20'Arial'%2C'sans-serif'%3B%20font-weight%3A%20inherit%3B%22%3E%3CEM%20style%3D%22font-family%3A%20Arial%2C%20sans-serif%3B%20color%3A%20%23333333%3B%22%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%3E%3CEM%20style%3D%22font-weight%3A%20inherit%3B%20font-family%3A%20inherit%3B%22%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