<?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のトピックLPC11U GPIO Interrupt</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U-GPIO-Interrupt/m-p/889556#M35653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get a GPIO edge interrupt to work on Port 0 Pin 20 of an LPC11U24, but I can't figure it out. My code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InitInterrupt()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;NVIC_DisableIRQ(FLEX_INT0_IRQn);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= 0x01 &amp;lt;&amp;lt; 19;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= 0x01 &amp;lt;&amp;lt; 23;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO-&amp;gt;DIR[0] &amp;amp;= ~(ANX_INTP);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;PINTSEL[0] = 20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO_PIN_INT-&amp;gt;ISEL &amp;amp;= ~0x01;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO_PIN_INT-&amp;gt;IENR |= 0x01;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO_PIN_INT-&amp;gt;SIENR |= 0x01;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_EnableIRQ(FLEX_INT0_IRQn);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interrupt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLEX_INT0_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t intStat = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; intStat = LPC_GPIO_PIN_INT-&amp;gt;IST;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO_PIN_INT-&amp;gt;IST = intStat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_ClearPendingIRQ(FLEX_INT0_IRQn);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2019 00:01:56 GMT</pubDate>
    <dc:creator>lydiaj5000</dc:creator>
    <dc:date>2019-02-08T00:01:56Z</dc:date>
    <item>
      <title>LPC11U GPIO Interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U-GPIO-Interrupt/m-p/889556#M35653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get a GPIO edge interrupt to work on Port 0 Pin 20 of an LPC11U24, but I can't figure it out. My code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InitInterrupt()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;NVIC_DisableIRQ(FLEX_INT0_IRQn);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= 0x01 &amp;lt;&amp;lt; 19;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= 0x01 &amp;lt;&amp;lt; 23;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO-&amp;gt;DIR[0] &amp;amp;= ~(ANX_INTP);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;PINTSEL[0] = 20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO_PIN_INT-&amp;gt;ISEL &amp;amp;= ~0x01;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO_PIN_INT-&amp;gt;IENR |= 0x01;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO_PIN_INT-&amp;gt;SIENR |= 0x01;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_EnableIRQ(FLEX_INT0_IRQn);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interrupt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLEX_INT0_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t intStat = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; intStat = LPC_GPIO_PIN_INT-&amp;gt;IST;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO_PIN_INT-&amp;gt;IST = intStat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_ClearPendingIRQ(FLEX_INT0_IRQn);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 00:01:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U-GPIO-Interrupt/m-p/889556#M35653</guid>
      <dc:creator>lydiaj5000</dc:creator>
      <dc:date>2019-02-08T00:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U GPIO Interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U-GPIO-Interrupt/m-p/889557#M35654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest to use as reference the&amp;nbsp;nxp_lpcxpresso_11u14_periph_pinint LPCOpen example code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can download LPCOpen from the following link:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX"&gt;LPCOpen Software for LPC11XX | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 15:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U-GPIO-Interrupt/m-p/889557#M35654</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-02-15T15:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U GPIO Interrupt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U-GPIO-Interrupt/m-p/889558#M35655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont see where you have set: (it might be different name in your header, but GPIOnIS register...&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;LPC_GPIO-&amp;gt;IS[0] |= (1&amp;lt;&amp;lt;20); //that should enable interrupt sense register for pin 20.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2019 17:10:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U-GPIO-Interrupt/m-p/889558#M35655</guid>
      <dc:creator>svensavic</dc:creator>
      <dc:date>2019-02-16T17:10:06Z</dc:date>
    </item>
  </channel>
</rss>

