<?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>Kinetis Microcontrollers中的主题 KW41Z interrupts issue</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-interrupts-issue/m-p/1001651#M55894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a project with KW41Z. I am trying to get 2 external interrupts from SW3 and SW4 buttons. When I tried&amp;nbsp;this example it didn't work at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="v1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94358iE6A2867DF945703C/image-size/large?v=v2&amp;amp;px=999" role="button" title="v1.PNG" alt="v1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sometimes I get a print on button push SW3 but it doesn't work when I push the button again. I cant understand why the same code sometimes works and sometimes doesn't.&lt;/P&gt;&lt;P&gt;Furthermore I saw this post&amp;nbsp;&amp;nbsp;&lt;A href="https://community.nxp.com/thread/494867"&gt;Input interrupt Handler example on KW41Z&lt;/A&gt; &amp;nbsp;and I cant get both buttons working. Shouldn't this be working if I add these lines of code (since both buttons have the same handler)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;PORT_SetPinInterruptConfig(BOARD_SW_PORT, BOARD_SW4_GPIO_PIN, kPORT_InterruptFallingEdge);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;GPIO_PinInit(BOARD_SW_GPIO, BOARD_SW4_GPIO_PIN, &amp;amp;sw_config);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Nov 2019 13:28:17 GMT</pubDate>
    <dc:creator>satsok_n</dc:creator>
    <dc:date>2019-11-17T13:28:17Z</dc:date>
    <item>
      <title>KW41Z interrupts issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-interrupts-issue/m-p/1001651#M55894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a project with KW41Z. I am trying to get 2 external interrupts from SW3 and SW4 buttons. When I tried&amp;nbsp;this example it didn't work at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="v1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94358iE6A2867DF945703C/image-size/large?v=v2&amp;amp;px=999" role="button" title="v1.PNG" alt="v1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sometimes I get a print on button push SW3 but it doesn't work when I push the button again. I cant understand why the same code sometimes works and sometimes doesn't.&lt;/P&gt;&lt;P&gt;Furthermore I saw this post&amp;nbsp;&amp;nbsp;&lt;A href="https://community.nxp.com/thread/494867"&gt;Input interrupt Handler example on KW41Z&lt;/A&gt; &amp;nbsp;and I cant get both buttons working. Shouldn't this be working if I add these lines of code (since both buttons have the same handler)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;PORT_SetPinInterruptConfig(BOARD_SW_PORT, BOARD_SW4_GPIO_PIN, kPORT_InterruptFallingEdge);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;GPIO_PinInit(BOARD_SW_GPIO, BOARD_SW4_GPIO_PIN, &amp;amp;sw_config);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2019 13:28:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-interrupts-issue/m-p/1001651#M55894</guid>
      <dc:creator>satsok_n</dc:creator>
      <dc:date>2019-11-17T13:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: KW41Z interrupts issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-interrupts-issue/m-p/1001652#M55895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;kostas,&lt;/P&gt;&lt;P&gt;Please refer the init codes of PTC4. If not the PTC5 is disable by default.&lt;/P&gt;&lt;P&gt;GPIO_GetPinsInterruptFlags should be use to check which SW caused interrupt, and then clear the corresponding interrupt flag.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SW3 SW4 FRDM-KW41Z.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94627iC3DB2EBE2EA0CA00/image-size/large?v=v2&amp;amp;px=999" role="button" title="SW3 SW4 FRDM-KW41Z.png" alt="SW3 SW4 FRDM-KW41Z.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="KW41Z Pin Assignments.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94936iA3C353D349B23303/image-size/large?v=v2&amp;amp;px=999" role="button" title="KW41Z Pin Assignments.png" alt="KW41Z Pin Assignments.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="GPIO interrupt example.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94988iF4B67314D754BEAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="GPIO interrupt example.png" alt="GPIO interrupt example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Robin&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&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, 19 Nov 2019 08:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW41Z-interrupts-issue/m-p/1001652#M55895</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2019-11-19T08:12:55Z</dc:date>
    </item>
  </channel>
</rss>

