<?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のトピックRe: GPIO_PortClearInterruptFlags not working</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-PortClearInterruptFlags-not-working/m-p/810278#M49262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reaction!&lt;/P&gt;&lt;P&gt;Yes I get into the interrupt handler. I putted there a break point and step through the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why I did two times the reading of the flags. First, is the flag high than a clear on the interrupt flag and a reading again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is always high... Maybe it takes some more time to clear the flag?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2018 08:21:28 GMT</pubDate>
    <dc:creator>rudycoppens</dc:creator>
    <dc:date>2018-09-14T08:21:28Z</dc:date>
    <item>
      <title>GPIO_PortClearInterruptFlags not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-PortClearInterruptFlags-not-working/m-p/810276#M49260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hardware:&lt;/P&gt;&lt;P&gt;- MKE14F16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Software:&lt;/P&gt;&lt;P&gt;MCUXpresso IDE 10.1.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a simple program when there is an interrupt on pin 7 from port A clear the interrupt pin.&lt;/P&gt;&lt;P&gt;But the function "&lt;SPAN&gt;GPIO_PortClearInterruptFlags(GPIOA, 1U &amp;lt;&amp;lt;&amp;nbsp; 7U);&lt;/SPAN&gt;" doesn't clear the flag...&lt;/P&gt;&lt;P&gt;Bit eight stays high.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void IRQ_HANDLER_PORT_A(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;uint32_t Interrupt_Flags_A = GPIO_PortGetInterruptFlags(GPIOA);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if((Interrupt_Flags_A &amp;gt;&amp;gt; 7u) &amp;amp; 1)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GPIO_PortClearInterruptFlags(GPIOA, 1u &amp;lt;&amp;lt; 7);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Interrupt_Flags_A = GPIO_PortGetInterruptFlags(GPIOA);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DisableIRQ(PORTA_IRQn);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:24:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-PortClearInterruptFlags-not-working/m-p/810276#M49260</guid>
      <dc:creator>rudycoppens</dc:creator>
      <dc:date>2018-09-10T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO_PortClearInterruptFlags not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-PortClearInterruptFlags-not-working/m-p/810277#M49261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rudy Coppens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you clarify how you set your interruption in the GPIO module? Will it detect a falling edge? also, are you able to see that you get into the interrupt handler?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the code that you post and I can see that the interrupt flag is correctly cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:28:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-PortClearInterruptFlags-not-working/m-p/810277#M49261</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-09-12T22:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO_PortClearInterruptFlags not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-PortClearInterruptFlags-not-working/m-p/810278#M49262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reaction!&lt;/P&gt;&lt;P&gt;Yes I get into the interrupt handler. I putted there a break point and step through the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why I did two times the reading of the flags. First, is the flag high than a clear on the interrupt flag and a reading again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is always high... Maybe it takes some more time to clear the flag?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 08:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-PortClearInterruptFlags-not-working/m-p/810278#M49262</guid>
      <dc:creator>rudycoppens</dc:creator>
      <dc:date>2018-09-14T08:21:28Z</dc:date>
    </item>
  </channel>
</rss>

