<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>SensorsのトピックRe: MMA8652 Clearing Interrupts</title>
    <link>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1435946#M6875</link>
    <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;I have had an issue just like yours. After reading&amp;nbsp;FF_MT_SRC register, interrupt still detect motion though i stop moving device but device still incline at an angle. Did you overcome this issue ?&lt;/P&gt;&lt;P&gt;Thanks for all advice and help.&lt;/P&gt;&lt;P&gt;Tri&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 07:28:54 GMT</pubDate>
    <dc:creator>hoangtri</dc:creator>
    <dc:date>2022-03-30T07:28:54Z</dc:date>
    <item>
      <title>MMA8652 Clearing Interrupts</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071533#M6186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been having great success so far using this MMA8652 part in my project.&amp;nbsp; &amp;nbsp;My remaining issue is the following ... all works well and interrupts fire as expected.&amp;nbsp; However when I move my device in one or two orientations, and hold it still ... the Motion interrupt fires continuously, and I can't clear it using all the Read registers mentioned, only after I tilt the device back to a different orientation does it stop.&amp;nbsp; INT_SOURCE register will always read 0x04 when in the orientation that indicating that the Motion interrupt has triggered, and nothing can clear it till I rotate the device in a different orientation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background and config:&lt;/P&gt;&lt;P&gt;I am only using the Portrait/Landscape interrupt mode and Motion interrupt mode.&amp;nbsp; &amp;nbsp;I am routing the PL Interrupt to INT1 and the motion interrupt to INT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the commands in the order I send them, with the part in standby mode....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accel.write(MMA8652_CTRL_REG1, 0xF8);&lt;BR /&gt;accel.write(MMA8652_CTRL_REG2, 0x03);&lt;BR /&gt;accel.write(MMA8652_CTRL_REG3, 0x28);&lt;BR /&gt;accel.write(MMA8652_CTRL_REG4, 0x14);&lt;BR /&gt;accel.write(MMA8652_CTRL_REG5, 0x10); &lt;BR /&gt;accel.write(MMA8652_PL_CFG, 0x40);&lt;BR /&gt;accel.write(MMA8652_PL_COUNT, 0x1);&lt;BR /&gt;accel.write(MMA8652_FF_MT_CFG, 0x78);&lt;BR /&gt;accel.write(MMA8652_FF_MT_THS, 0x92);&lt;BR /&gt;accel.write(MMA8652_FF_MT_COUNT, 0x03);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Again all works with the PL interrupts as I can display returned position each time I get an interrupt, and the motion interrupt will trigger if I move the device fast as expected, but when I hold the device on it's left side, the motion interrupt continuously fires, turning it to the Right side all is well, or on it's belly, back all is well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help or pointing out my mistake, as I am sure I am making one. &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:32:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071533#M6186</guid>
      <dc:creator>harsanys</dc:creator>
      <dc:date>2026-02-03T21:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8652 Clearing Interrupts</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071534#M6187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INT_SOURCE register bits are cleared by reading the appropriate interrupt source register. For example, the SRC_FF_MT bit is cleared by reading the FF_MT_SRC register (0x16). SRC_FF_MT bit is not cleared by simply reading the INT_SOURCE register (0x0C).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;P&gt;NXP Semiconductors&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2020 00:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071534#M6187</guid>
      <dc:creator>reyes</dc:creator>
      <dc:date>2020-04-24T00:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8652 Clearing Interrupts</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071535#M6188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jose!  I am running off a ESP32 based board and configure the MMA8652 as I show above.  I set the interrupts to wake the ESP32 and then read the two registers you mention, then read INT_SOURCE.  If I run with either of the interrupts on (PL or Motion) then I can run for days without issue.  It is only when they are both on, and in that single orientation.   Right before I go to sleep I have a while loop to read those two source registers and then the INT_SOURCE until I get a zero from INT_SOURCE or I try 5 times.  In this single orientation motion interrupt will never clear.  Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Outlook Mobile&amp;lt;https://aka.ms/blhgte&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2020 01:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071535#M6188</guid>
      <dc:creator>harsanys</dc:creator>
      <dc:date>2020-04-24T01:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8652 Clearing Interrupts</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071536#M6189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="color: black;"&gt;Thanks Jose!&amp;nbsp; I am running off a ESP32 based board and configure the MMA8652 as I show above.&amp;nbsp; I set the interrupts to wake the ESP32 from sleep and then read the two registers you mention, then read INT_SOURCE.&amp;nbsp; If I run with either of the interrupts&amp;nbsp;only (PL or Motion) then I can run for days without issue.&amp;nbsp; It is only when they are both on, and in that single orientation.&amp;nbsp;&amp;nbsp; Right before I go to sleep on the ESP32 I have a while loop to read those two source registers and then the INT_SOURCE until I get a zero from INT_SOURCE or I try 5 times.&amp;nbsp; In this single orientation motion interrupt will never clear.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="color: black;"&gt;Scott&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2020 02:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071536#M6189</guid>
      <dc:creator>harsanys</dc:creator>
      <dc:date>2020-04-24T02:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8652 Clearing Interrupts</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071537#M6190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the motion threshold has not been triggered, the interrupt should be clear after reading the FF_MT_SRC register (0x16) followed by the INT_ SOURCE register (0x0C), otherwise should be something wrong with your code.&lt;/P&gt;&lt;P&gt;Make sure the motion threshold has not been exceeded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;P&gt;NXP Semiconductors&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 13:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1071537#M6190</guid>
      <dc:creator>reyes</dc:creator>
      <dc:date>2020-04-27T13:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8652 Clearing Interrupts</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1435946#M6875</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;I have had an issue just like yours. After reading&amp;nbsp;FF_MT_SRC register, interrupt still detect motion though i stop moving device but device still incline at an angle. Did you overcome this issue ?&lt;/P&gt;&lt;P&gt;Thanks for all advice and help.&lt;/P&gt;&lt;P&gt;Tri&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 07:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8652-Clearing-Interrupts/m-p/1435946#M6875</guid>
      <dc:creator>hoangtri</dc:creator>
      <dc:date>2022-03-30T07:28:54Z</dc:date>
    </item>
  </channel>
</rss>

