<?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>topic Re: How to clean the interruption? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772490#M14598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lucas, &lt;/P&gt;&lt;P&gt;&amp;nbsp;Sorry I haven't used this chip, there is a example about it , maybe you can refer to it ,&lt;/P&gt;&lt;P&gt;please have a look to check this code how to configure the interrupt :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-98836"&gt;https://community.nxp.com/docs/DOC-98836&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Nov 2017 05:09:58 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2017-11-19T05:09:58Z</dc:date>
    <item>
      <title>How to clean the interruption?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772487#M14595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good night! Please, i'm trying to use Transient Function from MMA8451q, and i want to work with interruption to detect quick movements. But, when i start the program, the interruption is already set... and i dont know how to clean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MMA1_WriteReg8(0x2A, 0x08); //Standby mode and 400Hz&lt;BR /&gt;MMA1_WriteReg8(0x1D, 0x17); //Enables Z-axis, Latch (ELE = 1) and enables Motion Function setting HPF_BYP&lt;BR /&gt;MMA1_WriteReg8(0x1F, 0x08); //Threshold set to 0.5G&lt;BR /&gt;MMA1_WriteReg8(0x20, 0x01); //Count one event&lt;BR /&gt;MMA1_WriteReg8(0x2D, 0x20); //Enable Transient function enabling interruption pin&lt;BR /&gt;&lt;BR /&gt;MMA1_ReadReg8(0x0C, &amp;amp;state); //Reading INT_SOURCE to CLEAN INT1&amp;nbsp; - I already tried to read this register to clean the interruption... but it's not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 01:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772487#M14595</guid>
      <dc:creator>lucasmilitao</dc:creator>
      <dc:date>2017-11-14T01:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean the interruption?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772488#M14596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lucas,&lt;/P&gt;&lt;P&gt;It seems you also need read the register of&amp;nbsp;&amp;nbsp; 0x1E: TRANSIENT_SRC&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33457i3FE5753EA00C9B1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the register of&amp;nbsp;&amp;nbsp; 0x0C: INT_SOURCE shows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33581i1967A49E6E65F52A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 09:30:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772488#M14596</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-11-14T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean the interruption?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772489#M14597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, but I already tried this before, but nothing change. Is there something wrong with this part? I tried to modify the priority from the I2C and ExtInt too, but the result is allways the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MMA1_WriteReg8(0x2A, 0x08); //Standby mode and 400Hz&lt;BR /&gt; vTaskDelay(1);&lt;BR /&gt; MMA1_WriteReg8(0x1D, 0x17); //Enables Z-axis, Latch (ELE = 1) and enables Motion Function setting HPF_BYP&lt;BR /&gt; vTaskDelay(1);&lt;BR /&gt; MMA1_WriteReg8(0x1F, 0x08); //Threshold set to 0.5G&lt;BR /&gt; vTaskDelay(1);&lt;BR /&gt; MMA1_WriteReg8(0x20, 0x01); //Count one event&lt;BR /&gt; vTaskDelay(1);&lt;BR /&gt; MMA1_WriteReg8(0x2D, 0x20); //Enable Transient function enabling interruption pin&lt;BR /&gt; vTaskDelay(1);&lt;BR /&gt; MMA1_WriteReg8(0x2E, 0x20); //Enable Interruption INT 1&lt;BR /&gt; vTaskDelay(1);&lt;BR /&gt; MMA1_ReadReg8(0x0C, &amp;amp;state); //Reading INT_SOURCE to CLEAN INT1&lt;BR /&gt; vTaskDelay(1);&lt;BR /&gt; MMA1_ReadReg8(0x1E, &amp;amp;state); //Reading TRANSIENT_SRC to CLEAN INT1&lt;BR /&gt; vTaskDelay(1);&lt;/P&gt;&lt;P&gt;MMA1_Enable();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 12:06:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772489#M14597</guid>
      <dc:creator>lucasmilitao</dc:creator>
      <dc:date>2017-11-15T12:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean the interruption?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772490#M14598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lucas, &lt;/P&gt;&lt;P&gt;&amp;nbsp;Sorry I haven't used this chip, there is a example about it , maybe you can refer to it ,&lt;/P&gt;&lt;P&gt;please have a look to check this code how to configure the interrupt :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-98836"&gt;https://community.nxp.com/docs/DOC-98836&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2017 05:09:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-clean-the-interruption/m-p/772490#M14598</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-11-19T05:09:58Z</dc:date>
    </item>
  </channel>
</rss>

