<?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: Not getting interrupt using GPIO PIN Interrupt in lpc1837 ?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-getting-interrupt-using-GPIO-PIN-Interrupt-in-lpc1837/m-p/647132#M25653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've already given the reply in the &lt;A href="https://community.nxp.com/thread/435207"&gt;GPIO PIN interrupt is not working in LPC 1837&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Please have a check.&lt;/P&gt;&lt;P&gt;Ping&lt;BR /&gt;Have a great day,&lt;BR /&gt;(my name)&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, 27 Sep 2016 06:39:17 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-09-27T06:39:17Z</dc:date>
    <item>
      <title>Not getting interrupt using GPIO PIN Interrupt in lpc1837 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-getting-interrupt-using-GPIO-PIN-Interrupt-in-lpc1837/m-p/647131#M25652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I am using LPC1837, i need to enable active low interrupt in individual GPIO PIN.&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;&amp;nbsp;&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;/* enable GPIO port clock */&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;GPIO_PortClock(1);&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;/* Set GPIO6[0] &amp;nbsp;pin and&amp;nbsp;GPIO6[2] as input */&lt;BR /&gt;GPIO_SetDir(6,0,GPIO_DIR_INPUT);&lt;BR /&gt;GPIO_SetDir(6,2,GPIO_DIR_INPUT);&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;/* enable pin as GPIO Mode pin in pin multiplexing*/&lt;BR /&gt;SCU_PinConfigure(0xC,1,( SCU_CFG_MODE_FUNC4 | SCU_SFS_EPUN | SCU_SFS_ZIF ));&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;SCU_PinConfigure(0xC,3,( SCU_CFG_MODE_FUNC4 | SCU_SFS_EPUN | SCU_SFS_ZIF ));&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;/* set values for PINTSEL0 to choose GPIO Port 6,pin no 0 on INTPIN0 */&lt;BR /&gt;SCU_PinInterruptSourceSelect(0x00, 0x06, 0x00);&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/* set values for PINTSEL0 to choose GPIO Port 6,pin no 2&amp;nbsp;on INTPIN1 */&lt;BR /&gt;SCU_PinInterruptSourceSelect(0x01, 0x06, 0x02);&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/* enable level interrupt */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_GPIO_PIN_INT-&amp;gt;ISEL = (GPIO_PIN_INT_ISEL_PMODE0_Msk | &lt;BR /&gt;GPIO_PIN_INT_ISEL_PMODE1_Msk);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* enable level interrupt */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_GPIO_PIN_INT-&amp;gt;IENR = (GPIO_PIN_INT_IENR_ENRL0_Msk |&lt;BR /&gt;GPIO_PIN_INT_IENR_ENRL1_Msk );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LPC_GPIO_PIN_INT-&amp;gt;SIENR = ( GPIO_PIN_INT_SIENR_SETENRL0_Msk |&lt;BR /&gt;GPIO_PIN_INT_SIENR_SETENRL1_Msk );&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/*&lt;STRONG&gt; IST setting immediately after setting SIENR bit, but my hardware pin state is HIGH only&lt;/STRONG&gt; &amp;nbsp;*/&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/* enable active LOW interrupt */&lt;/P&gt;&lt;P&gt;LPC_GPIO_PIN_INT-&amp;gt;IENF = 0x00UL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_GPIO_PIN_INT-&amp;gt;CIENF = (GPIO_PIN_INT_CIENF_CENAF0_Msk |&lt;BR /&gt;GPIO_PIN_INT_CIENF_CENAF1_Msk );&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NVIC-&amp;gt;ICPR[(((uint32_t)(int32_t)33) &amp;gt;&amp;gt; 5UL)] = (uint32_t)(1UL &amp;lt;&amp;lt; (((uint32_t)(int32_t)33) &amp;amp; 0x1FUL));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NVIC-&amp;gt;ISER[(((uint32_t)(int32_t)33) &amp;gt;&amp;gt; 5UL)] = (uint32_t)(1UL &amp;lt;&amp;lt; (((uint32_t)(int32_t)33) &amp;amp; 0x1FUL));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is that require to write IST-&amp;gt;PSTATx to clear inside interrupt??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void GPIO1_IRQHandler(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;/*&lt;STRONG&gt; write IST bits as 1 to clear the interrupt&lt;/STRONG&gt;*/&lt;BR /&gt; LPC_GPIO_PIN_INT-&amp;gt;IST = (GPIO_PIN_INT_IST_PSTAT0_Msk |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GPIO_PIN_INT_IST_PSTAT1_Msk);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To enable interrupt is that require any other preliminary settings required? Am i missing something??????&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 13:16:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-getting-interrupt-using-GPIO-PIN-Interrupt-in-lpc1837/m-p/647131#M25652</guid>
      <dc:creator>ponalagappan</dc:creator>
      <dc:date>2016-09-23T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting interrupt using GPIO PIN Interrupt in lpc1837 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-getting-interrupt-using-GPIO-PIN-Interrupt-in-lpc1837/m-p/647132#M25653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've already given the reply in the &lt;A href="https://community.nxp.com/thread/435207"&gt;GPIO PIN interrupt is not working in LPC 1837&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Please have a check.&lt;/P&gt;&lt;P&gt;Ping&lt;BR /&gt;Have a great day,&lt;BR /&gt;(my name)&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, 27 Sep 2016 06:39:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-getting-interrupt-using-GPIO-PIN-Interrupt-in-lpc1837/m-p/647132#M25653</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-09-27T06:39:17Z</dc:date>
    </item>
  </channel>
</rss>

