MMA8652FC motion detection interrupt with HPF enabled

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MMA8652FC motion detection interrupt with HPF enabled

跳至解决方案
2,545 次查看
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

标签 (1)
0 项奖励
1 解答
2,280 次查看
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 项奖励
1 回复
2,281 次查看
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 项奖励
%3CLINGO-SUB%20id%3D%22lingo-sub-363974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%90%AF%E7%94%A8%20HPF%20%E6%97%B6%E7%9A%84%20MMA8652FC%20%E8%BF%90%E5%8A%A8%E6%A3%80%E6%B5%8B%E4%B8%AD%E6%96%AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E6%97%A9%E4%B8%8A%E5%A5%BD%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E6%9C%89%E5%BE%88%E5%A4%9A%E4%B8%AD%E6%96%AD%EF%BC%8C%E5%A5%BD%E5%83%8F%E7%BB%95%E8%BF%87%E4%BA%86%20HPF%20%E8%BF%87%E6%BB%A4%E5%99%A8%EF%BC%88%E8%A7%81%E9%99%84%E4%BB%B6%E4%B8%AD%E7%9A%84%E6%97%A5%E5%BF%97%E6%96%87%E4%BB%B6%EF%BC%89%3C%2FP%3E%3CP%3E%E5%A6%82%E6%9E%9C%E6%88%91%E7%9C%8B%E5%88%B0%E5%8A%A0%E9%80%9F%E5%BA%A6%E6%95%B0%E6%8D%AE%EF%BC%8C%E5%AE%83%E4%BB%AC%E4%BC%9A%E8%A2%AB%E6%AD%A3%E7%A1%AE%E8%BF%87%E6%BB%A4%EF%BC%88%E8%A7%81%20Z%20%E8%BD%B4%EF%BC%89%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84%E8%AE%BE%E7%BD%AE%E6%9C%89%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98%EF%BC%9F%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%8D%A1%E6%B4%9B-%E8%BF%AA-%E5%B8%95%E6%96%AF%E5%8D%A1%E5%88%A9%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E5%8E%9F%E5%A7%8B%E9%99%84%E4%BB%B6%E5%B7%B2%E7%A7%BB%E8%87%B3%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%3E%E5%8A%A0%E9%80%9F%E5%BA%A6%E4%BC%A0%E6%84%9F%E5%99%A8%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%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E5%8D%A1%E6%B4%9B%E3%80%81%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%3E%E5%8D%B3%E4%BD%BF%E5%90%AF%E7%94%A8%E4%BA%86%E9%AB%98%E9%80%9A%E6%BB%A4%E6%B3%A2%E5%99%A8%EF%BC%88HPF_OUT%20%3D%201%EF%BC%89%EF%BC%8C%E8%BF%90%E5%8A%A8%E6%A3%80%E6%B5%8B%E5%8A%9F%E8%83%BD%E4%B9%9F%E5%8F%AA%E8%83%BD%E5%88%86%E6%9E%90%E4%BD%8E%E9%80%9A%E6%BB%A4%E6%B3%A2%E6%95%B0%E6%8D%AE%E3%80%82%E6%88%91%E5%BB%BA%E8%AE%AE%E4%BD%BF%E7%94%A8%E7%9E%AC%E6%80%81%E6%A3%80%E6%B5%8B%E5%8A%9F%E8%83%BD%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E4%BC%9A%E5%88%86%E6%9E%90%E9%AB%98%E9%80%9A%E6%BB%A4%E6%B3%A2%E6%95%B0%E6%8D%AE%EF%BC%8C%E9%99%A4%E9%9D%9E%20HPF_BYP%20%E4%BD%8D%E8%A2%AB%E8%AE%BE%E7%BD%AE%E3%80%82%E6%9C%89%E5%85%B3%E7%9E%AC%E6%80%81%E6%A3%80%E6%B5%8B%E5%8A%9F%E8%83%BD%E7%9A%84%E6%9B%B4%E5%A4%9A%E4%BF%A1%E6%81%AF%EF%BC%8C%E5%8C%85%E6%8B%AC%E5%AF%84%E5%AD%98%E5%99%A8%E8%AE%BE%E7%BD%AE%E7%A4%BA%E4%BE%8B%EF%BC%8C%E8%AF%B7%E5%8F%82%E9%98%85%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%E3%80%82%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%3E%E5%B8%8C%E6%9C%9B%E5%AF%B9%E6%82%A8%E6%9C%89%E6%89%80%E5%B8%AE%E5%8A%A9%E3%80%82%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%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%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%E6%89%98%E9%A9%AC%E6%96%AF%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%EF%BC%9A%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%3E%E5%A6%82%E6%9E%9C%E6%88%91%E7%9A%84%E5%9B%9E%E7%AD%94%E6%9C%89%E5%8A%A9%E4%BA%8E%E8%A7%A3%E5%86%B3%E6%82%A8%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%8C%E8%AF%B7%E6%A0%87%E8%AE%B0%E4%B8%BA%22%E6%AD%A3%E7%A1%AE%22%20%E6%88%96%20%22%E6%9C%89%E5%B8%AE%E5%8A%A9%22%E3%80%82%E8%B0%A2%E8%B0%A2%E3%80%82%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E