<?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のトピックGPIO external interrupt</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-external-interrupt/m-p/711197#M28686</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 am working on GPIO external interrupt on LPC1769 board and having problems getting it to work. I have connected pin 2.11 to a push button and interrupt must be generated when the button is pushed. Any help is greatly appreciated. Thanks.. Below is the code,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="color: #931a68;"&gt;#define&lt;/SPAN&gt; EINT0&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="color: #931a68;"&gt;void&lt;/SPAN&gt; EINT0_IRQHandler(&lt;SPAN style="color: #931a68;"&gt;void&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;{&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;LPC_GPIOINT-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;IO2IntClr&lt;/SPAN&gt; = (1 &amp;lt;&amp;lt; 11);&lt;/P&gt;&lt;P style="color: #3933ff; font-size: 11px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #793d93;"&gt;printf&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;"0interrupt\n"&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #931a68;"&gt;int&lt;/SPAN&gt; main(&lt;SPAN style="color: #931a68;"&gt;void&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LPC_PINCON-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;PINSEL4&lt;/SPAN&gt; &amp;amp;= ~(3&amp;lt;&amp;lt;20);&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LPC_PINCON-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;PINSEL4&lt;/SPAN&gt; |= (1&amp;lt;&amp;lt;20);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LPC_GPIO2-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;FIODIR&lt;/SPAN&gt; &amp;amp;= ~(1&amp;lt;&amp;lt;10);&lt;/P&gt;&lt;P style="color: #4e9072; font-size: 11px;"&gt;//&lt;SPAN class=""&gt; &lt;/SPAN&gt; LPC_GPIOINT-&amp;gt;IO2IntEnF |= (0x01 &amp;lt;&amp;lt;10);&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt; LPC_SC-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;EXTMODE&lt;/SPAN&gt; = (1&amp;lt;&amp;lt;EINT0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LPC_SC-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;EXTPOLAR&lt;/SPAN&gt; = (1&amp;lt;&amp;lt;EINT0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;NVIC_EnableIRQ(&lt;SPAN style="color: #0326cc;"&gt;EINT0_IRQn&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #931a68;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;while&lt;SPAN style="color: #000000;"&gt;(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #931a68;"&gt;return&lt;/SPAN&gt; 0 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #931a68;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2017 22:56:11 GMT</pubDate>
    <dc:creator>storm_rd</dc:creator>
    <dc:date>2017-10-19T22:56:11Z</dc:date>
    <item>
      <title>GPIO external interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-external-interrupt/m-p/711197#M28686</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 am working on GPIO external interrupt on LPC1769 board and having problems getting it to work. I have connected pin 2.11 to a push button and interrupt must be generated when the button is pushed. Any help is greatly appreciated. Thanks.. Below is the code,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="color: #931a68;"&gt;#define&lt;/SPAN&gt; EINT0&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&lt;SPAN style="color: #931a68;"&gt;void&lt;/SPAN&gt; EINT0_IRQHandler(&lt;SPAN style="color: #931a68;"&gt;void&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;{&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;LPC_GPIOINT-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;IO2IntClr&lt;/SPAN&gt; = (1 &amp;lt;&amp;lt; 11);&lt;/P&gt;&lt;P style="color: #3933ff; font-size: 11px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #793d93;"&gt;printf&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;"0interrupt\n"&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #931a68;"&gt;int&lt;/SPAN&gt; main(&lt;SPAN style="color: #931a68;"&gt;void&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LPC_PINCON-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;PINSEL4&lt;/SPAN&gt; &amp;amp;= ~(3&amp;lt;&amp;lt;20);&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LPC_PINCON-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;PINSEL4&lt;/SPAN&gt; |= (1&amp;lt;&amp;lt;20);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LPC_GPIO2-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;FIODIR&lt;/SPAN&gt; &amp;amp;= ~(1&amp;lt;&amp;lt;10);&lt;/P&gt;&lt;P style="color: #4e9072; font-size: 11px;"&gt;//&lt;SPAN class=""&gt; &lt;/SPAN&gt; LPC_GPIOINT-&amp;gt;IO2IntEnF |= (0x01 &amp;lt;&amp;lt;10);&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt; LPC_SC-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;EXTMODE&lt;/SPAN&gt; = (1&amp;lt;&amp;lt;EINT0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LPC_SC-&amp;gt;&lt;SPAN style="color: #0326cc;"&gt;EXTPOLAR&lt;/SPAN&gt; = (1&amp;lt;&amp;lt;EINT0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;NVIC_EnableIRQ(&lt;SPAN style="color: #0326cc;"&gt;EINT0_IRQn&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #931a68;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;while&lt;SPAN style="color: #000000;"&gt;(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #931a68;"&gt;return&lt;/SPAN&gt; 0 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #931a68;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 22:56:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-external-interrupt/m-p/711197#M28686</guid>
      <dc:creator>storm_rd</dc:creator>
      <dc:date>2017-10-19T22:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO external interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-external-interrupt/m-p/711198#M28687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="305971" data-username="storm_rd" href="https://community.nxp.com/people/storm_rd"&gt;Ramadevi Jayaraman&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;To provide the fastest possible support, I'd like to recommend you to refer to the periph_pinint demo of the LPCOpen library.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background-color: #ffffff; font-size: 15px;"&gt;If you have any further questions about it, please feel free to contact with me.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;Have a great day,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;TIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 15px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 02:14:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-external-interrupt/m-p/711198#M28687</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-10-25T02:14:34Z</dc:date>
    </item>
  </channel>
</rss>

