<?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>LPC MicrocontrollersのトピックRe: LPC1758 GPIO Interrupt p2.6 not clearing</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-GPIO-Interrupt-p2-6-not-clearing/m-p/1004665#M39457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="351581" data-username="a.grant@aap.co.nz" href="https://community.nxp.com/people/a.grant@aap.co.nz"&gt;Adam Grant&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;The phenomenon is a bit weird, and I'd like to know whether this phenomenon only happens on the P2_6 pin.&lt;BR /&gt;In further, please check the voltage state of the P2_6 pin, it may be related to the hardware.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2020 01:59:33 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2020-02-25T01:59:33Z</dc:date>
    <item>
      <title>LPC1758 GPIO Interrupt p2.6 not clearing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-GPIO-Interrupt-p2-6-not-clearing/m-p/1004663#M39455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to setup a GPIO Interrupt for rising and falling edge interrupt, this all seems to be working fine. The issue is that the interrupt will not clear when I set the clear register for p2.6.&lt;BR /&gt;I have another interrupt on P2.1 which clears correctly. I can step through the code and see the status register clear on p2.1 but when I do the same on p2.6 I see no change. I have tried setting the register directly without using the Chip_GPIOINT_ClearIntStatus() function but still it wont clear. I am at a loss as to why the interrupt will not clear and really just need to get this project moving forwards. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;This is my interrupt handler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void INTN_Handler(void)&amp;nbsp;&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;UBaseType_t uxSavedInterruptStatus;&lt;BR /&gt; NVIC_ClearPendingIRQ(EINT3_IRQn);&lt;/P&gt;&lt;P&gt;uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BaseType_t xKSZTaskWoken = pdFALSE;&lt;/P&gt;&lt;P&gt;if(Chip_GPIOINT_GetStatusFalling(LPC_GPIOINT,2) &amp;amp; ( 1 &amp;lt;&amp;lt;&amp;nbsp;6 ) ||&lt;BR /&gt; Chip_GPIOINT_GetStatusRising(LPC_GPIOINT,2) &amp;amp; ( 1 &amp;lt;&amp;lt;&amp;nbsp;6 ))&lt;BR /&gt; {&lt;BR /&gt; Chip_GPIOINT_ClearIntStatus(LPC_GPIOINT, 2, (1 &amp;lt;&amp;lt; 6));&lt;BR /&gt; if( xKbusTaskHandle != NULL )&lt;BR /&gt; {&lt;BR /&gt; //vTaskNotifyGiveFromISR( xKbusTaskHandle, &amp;amp;xKSZTaskWoken );&lt;BR /&gt; //portEND_SWITCHING_ISR( xKSZTaskWoken );&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if(Chip_GPIOINT_GetStatusFalling(LPC_GPIOINT,2) &amp;amp; ( 1 &amp;lt;&amp;lt;&amp;nbsp;1 ))&lt;BR /&gt; {&lt;BR /&gt; Chip_GPIOINT_ClearIntStatus(LPC_GPIOINT, 2, (1 &amp;lt;&amp;lt; 1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Set the INTN flag. */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;xMicrelDevice.ul_had_intn_interrupt = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if( xEMACTaskHandle != NULL )&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;//vTaskNotifyGiveFromISR( xEMACTaskHandle, &amp;amp;xKSZTaskWoken );&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;//portEND_SWITCHING_ISR( xKSZTaskWoken );&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;taskEXIT_CRITICAL_FROM_ISR(uxSavedInterruptStatus);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the gpio setup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NVIC_DisableIRQ(EINT3_IRQn);&lt;BR /&gt; //Configure the Kbus clock interrupt pin&lt;BR /&gt; Chip_IOCON_PinMux(LPC_IOCON, 2, 6, IOCON_MODE_INACT, IOCON_FUNC0);&lt;BR /&gt; Chip_GPIO_SetPinDIRInput(LPC_GPIO, 2, 6);&lt;BR /&gt; Chip_GPIOINT_SetIntFalling(LPC_GPIOINT, 2, 1 &amp;lt;&amp;lt; 6);&lt;BR /&gt; Chip_GPIOINT_SetIntRising(LPC_GPIOINT, 2, 1 &amp;lt;&amp;lt; 6);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the other:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Configure GPIO interrupt pin as input */&lt;BR /&gt; Chip_GPIO_SetPinDIRInput(LPC_GPIO, 2, 1);&lt;BR /&gt; Chip_IOCON_PinMux(LPC_IOCON, 2, KSZ_INTERRUPT_PIN, IOCON_MODE_INACT, IOCON_FUNC0);&lt;/P&gt;&lt;P&gt;/* Configure the GPIO interrupt */&lt;BR /&gt; Chip_GPIOINT_SetIntFalling(LPC_GPIOINT, 2, 1 &amp;lt;&amp;lt; 1);&lt;BR /&gt; Chip_GPIOINT_SetIntRising(LPC_GPIOINT, 2, 0 &amp;lt;&amp;lt; 1);&lt;BR /&gt; NVIC_DisableIRQ(EINT3_IRQn);&lt;BR /&gt; NVIC_SetPriority(EINT3_IRQn, configMAX_LIBRARY_INTERRUPT_PRIORITY/*configMAX_SYSCALL_INTERRUPT_PRIORITY*/);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 04:20:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-GPIO-Interrupt-p2-6-not-clearing/m-p/1004663#M39455</guid>
      <dc:creator>a_grant</dc:creator>
      <dc:date>2020-02-24T04:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1758 GPIO Interrupt p2.6 not clearing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-GPIO-Interrupt-p2-6-not-clearing/m-p/1004664#M39456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just adding an image of the GPIOINT register after trying to clear 2.6.&lt;/P&gt;&lt;P&gt;At the breakpoint the line behind says LPC_GPIOINT-&amp;gt;IO2.CLR |= (1&amp;lt;&amp;lt;6); stepping past this I would have expected STATR and STATF to clear the 0x40 bit.&lt;span class="lia-inline-image-display-wrapper" image-alt="ClearFailed.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102975iE552B3B243EB6E11/image-size/large?v=v2&amp;amp;px=999" role="button" title="ClearFailed.png" alt="ClearFailed.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 09:44:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-GPIO-Interrupt-p2-6-not-clearing/m-p/1004664#M39456</guid>
      <dc:creator>a_grant</dc:creator>
      <dc:date>2020-02-24T09:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1758 GPIO Interrupt p2.6 not clearing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-GPIO-Interrupt-p2-6-not-clearing/m-p/1004665#M39457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="351581" data-username="a.grant@aap.co.nz" href="https://community.nxp.com/people/a.grant@aap.co.nz"&gt;Adam Grant&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;The phenomenon is a bit weird, and I'd like to know whether this phenomenon only happens on the P2_6 pin.&lt;BR /&gt;In further, please check the voltage state of the P2_6 pin, it may be related to the hardware.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 01:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-GPIO-Interrupt-p2-6-not-clearing/m-p/1004665#M39457</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-02-25T01:59:33Z</dc:date>
    </item>
  </channel>
</rss>

