<?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>topic Re: LPC1549 GPIO Interrupt Not Invoking in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571560#M18412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shantanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot find where you enable the pin clock (&lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Chip_Clock_EnablePeriphClock&lt;/SPAN&gt;). Did you set the clock??&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &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>Mon, 15 Aug 2016 20:32:50 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2016-08-15T20:32:50Z</dc:date>
    <item>
      <title>LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571559#M18411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I a not getting interrupt even after setting configurations. Can anybody help me finding out what wrong am I doing in the code below ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define&lt;/TD&gt;&lt;TD&gt;TEST_INT_GPIO_PORT&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;(1)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define&lt;/TD&gt;&lt;TD&gt;TEST_INT_GPIO_PIN&lt;/TD&gt;&lt;TD&gt;(9)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Chip_GPIO_SetPinDIRInput(LPC_GPIO, TEST_INT_GPIO_PORT/*port*/, TEST_INT_GPIO_PIN/*pin*/);&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Chip_PININT_Init(LPC_GPIO_PIN_INT);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Chip_IOCON_PinMuxSet(LPC_IOCON, TEST_INT_GPIO_PORT, TEST_INT_GPIO_PIN, (IOCON_DIGMODE_EN | IOCON_MODE_INACT) );&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;/* Configure interrupt channel for the GPIO pin in INMUX block */&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Chip_INMUX_PinIntSel(PININTCH0, TEST_INT_GPIO_PORT, TEST_INT_GPIO_PIN);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;/* Enable interrupt in the NVIC */&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;NVIC_ClearPendingIRQ(PIN_INT0_IRQn);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;NVIC_EnableIRQ(PIN_INT0_IRQn);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;/* Configure channel interrupt as edge sensitive and falling edge interrupt */&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, PININTCH0);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Chip_PININT_SetPinModeEdge(LPC_GPIO_PIN_INT, PININTCH0);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Chip_PININT_EnableIntLow(LPC_GPIO_PIN_INT, PININTCH0);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I am pressing the SW3 in LPCXpresso1549 board, I am not getting any interrupt generated. What am I doing wrong ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 18:42:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571559#M18411</guid>
      <dc:creator>shantanudhar</dc:creator>
      <dc:date>2016-08-04T18:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571560#M18412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shantanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot find where you enable the pin clock (&lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Chip_Clock_EnablePeriphClock&lt;/SPAN&gt;). Did you set the clock??&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &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>Mon, 15 Aug 2016 20:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571560#M18412</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-08-15T20:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571561#M18413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot to mention in the post that I have already powered the GPIO port using&amp;nbsp;Chip_GPIO_Init(LPC_GPIO); at the very first line.&lt;/P&gt;&lt;P&gt;The problem still remains. Any idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2016 16:15:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571561#M18413</guid>
      <dc:creator>shantanudhar</dc:creator>
      <dc:date>2016-10-02T16:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571562#M18414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dumb question, but do you set the interrupt priority somewhere?&lt;/P&gt;&lt;P&gt;I'm not into that LPC API stuff, but broken down to the register access, my initialization for a falling edge interrupt looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int int_no = 0;&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;&amp;nbsp;&amp;nbsp; // Example: use PIN_INT0&lt;BR /&gt;int pin_no = 17;&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;&amp;nbsp; // Example: use P0.17&lt;/P&gt;&lt;P&gt;int int_prio = 7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_INMUX-&amp;gt;PINTSEL[int_no] = pin_no;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Assign pin to interrupt&lt;BR /&gt;LPC_GPIO_PIN_INT-&amp;gt;ISEL = 1UL&amp;lt;&amp;lt;pin_no;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Select edge sensitive interrupt for pin&lt;BR /&gt;LPC_GPIO_PIN_INT-&amp;gt;IST = 1UL&amp;lt;&amp;lt;int_no;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Clear edge interrupt request&lt;BR /&gt;LPC_GPIO_PIN_INT-&amp;gt;SIENF = 1UL&amp;lt;&amp;lt;int_no;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enable falling edge interrupt (for rising edge, you need SIENR)&lt;BR /&gt;NVIC_SetPriority(PIN_INT0_IRQn, int_prio); // assuming int_no==0, else you need PIN_INT1_IRQn .. PIN_INT7_IRQn&lt;BR /&gt;NVIC_EnableIRQ(PIN_INT0_IRQn, int_prio);&amp;nbsp;&amp;nbsp; // again, assuming you use INT0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from that, you only need to enable the PINT peripheral in SYSAHBCLKCTRL0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571562#M18414</guid>
      <dc:creator>volkeroth</dc:creator>
      <dc:date>2016-10-03T14:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571563#M18415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cross checked my code. It doesn't work Volker. And I am still unable to get what wrong is happening. Here below is my code. Made a small change to get the interrupt generated at port 0 pin 17 (SW1). Still it doesn't work. Any help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;BR /&gt;#include "chip.h"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;extern void delay(int count);&lt;BR /&gt;extern void WriteIntWithInterrupt(const int inInt);&lt;BR /&gt;extern void WriteCharWithInterrupt(char inChar);&lt;BR /&gt;extern void WriteStringWithInterrupt(const char *pStr);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* GPIO pin for PININT interrupt. This is SW1-WAKE button switch input. */&lt;BR /&gt;#define TEST_INPUT_PIN 17 /* GPIO pin number mapped to PININT */&lt;BR /&gt;#define TEST_INPUT_PORT 0 /* GPIO port number mapped to PININT */&lt;BR /&gt;#define TEST_INPUT_PIN_PORT 0&lt;BR /&gt;#define TEST_INPUT_PIN_BIT 17&lt;BR /&gt;#define PININT_INDEX 0 /* PININT index used for GPIO mapping */&lt;BR /&gt;#define PININT_IRQ_HANDLER &amp;nbsp;&amp;nbsp;&amp;nbsp;PIN_INT0_IRQHandler /* GPIO interrupt IRQ function name */&lt;BR /&gt;#define PININT_NVIC_NAME &amp;nbsp;&amp;nbsp;&amp;nbsp;PIN_INT0_IRQn /* GPIO interrupt NVIC interrupt name */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**&lt;BR /&gt; * @brief Handle interrupt from GPIO pin or GPIO pin mapped to PININT&lt;BR /&gt; * @return Nothing&lt;BR /&gt; */&lt;BR /&gt;void PININT_IRQ_HANDLER(void)&lt;BR /&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;//Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, PININTCH(PININT_INDEX));&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, 0);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;WriteStringWithInterrupt("Inside SW1 GPIO Interrupt Handler\n");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SystemCoreClockUpdate();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Initialize GPIO */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_GPIO_Init(LPC_GPIO);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Initialize PININT driver */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_Init(LPC_GPIO_PIN_INT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Set pin back to GPIO (on some boards may have been changed to something&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;else by Board_Init()) */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, TEST_INPUT_PIN_PORT, TEST_INPUT_PIN_BIT,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;(IOCON_DIGMODE_EN | IOCON_MODE_INACT) );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Configure GPIO pin as input */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_GPIO_SetPinDIRInput(LPC_GPIO, TEST_INPUT_PORT, TEST_INPUT_PIN);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Configure interrupt channel for the GPIO pin in INMUX block */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_INMUX_PinIntSel(PININT_INDEX, TEST_INPUT_PORT, TEST_INPUT_PIN);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Configure channel interrupt as edge sensitive and falling edge interrupt */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, /*PININTCH(PININT_INDEX)*/0);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_SetPinModeEdge(LPC_GPIO_PIN_INT, /*PININTCH(PININT_INDEX)*/0);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_EnableIntLow(LPC_GPIO_PIN_INT, /*PININTCH(PININT_INDEX)*/0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Enable interrupt in the NVIC */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;NVIC_ClearPendingIRQ(PININT_NVIC_NAME);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;NVIC_EnableIRQ(PININT_NVIC_NAME);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Spin in a loop here. All the work is done in ISR. */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;while (1) {}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I set the interrupt priority&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;NVIC_SetPriority(PIN_INT0_IRQn, int_prio); it&amp;nbsp;don't get an interrupt on press-releasing SW1 button.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 05:20:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571563#M18415</guid>
      <dc:creator>shantanudhar</dc:creator>
      <dc:date>2016-10-05T05:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571564#M18416</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;Here below is my code. Made a small change to get the interrupt generated at port 0 pin 17 (SW1). Still it doesn't work. Any help ?&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;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;BR /&gt;#include "chip.h"&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;BR /&gt;extern void delay(int count);&lt;BR /&gt;extern void WriteIntWithInterrupt(const int inInt);&lt;BR /&gt;extern void WriteCharWithInterrupt(char inChar);&lt;BR /&gt;extern void WriteStringWithInterrupt(const char *pStr);&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;BR /&gt;/* GPIO pin for PININT interrupt. This is SW1-WAKE button switch input. */&lt;BR /&gt;#define TEST_INPUT_PIN 17 /* GPIO pin number mapped to PININT */&lt;BR /&gt;#define TEST_INPUT_PORT 0 /* GPIO port number mapped to PININT */&lt;BR /&gt;#define TEST_INPUT_PIN_PORT 0&lt;BR /&gt;#define TEST_INPUT_PIN_BIT 17&lt;BR /&gt;#define PININT_INDEX 0 /* PININT index used for GPIO mapping */&lt;BR /&gt;#define PININT_IRQ_HANDLER &amp;nbsp;&amp;nbsp;&amp;nbsp;PIN_INT0_IRQHandler /* GPIO interrupt IRQ function name */&lt;BR /&gt;#define PININT_NVIC_NAME &amp;nbsp;&amp;nbsp;&amp;nbsp;PIN_INT0_IRQn /* GPIO interrupt NVIC interrupt name */&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;BR /&gt;/**&lt;BR /&gt;* @brief Handle interrupt from GPIO pin or GPIO pin mapped to PININT&lt;BR /&gt;* @return Nothing&lt;BR /&gt;*/&lt;BR /&gt;void PININT_IRQ_HANDLER(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, PININTCH(PININT_INDEX));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WriteStringWithInterrupt("Inside SW1 GPIO Interrupt Handler\n");&lt;BR /&gt;}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SystemCoreClockUpdate();&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;&amp;nbsp;&amp;nbsp;/* Initialize GPIO */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_GPIO_Init(LPC_GPIO);&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;&amp;nbsp;&amp;nbsp;/* Initialize PININT driver */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_Init(LPC_GPIO_PIN_INT);&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;&amp;nbsp;&amp;nbsp;/* Set pin back to GPIO (on some boards may have been changed to something&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;else by Board_Init()) */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, TEST_INPUT_PIN_PORT, TEST_INPUT_PIN_BIT,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(IOCON_DIGMODE_EN | IOCON_MODE_INACT) );&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;&amp;nbsp;&amp;nbsp;/* Configure GPIO pin as input */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_GPIO_SetPinDIRInput(LPC_GPIO, TEST_INPUT_PORT, TEST_INPUT_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;&amp;nbsp;&amp;nbsp;/* Configure interrupt channel for the GPIO pin in INMUX block */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_INMUX_PinIntSel(PININT_INDEX, TEST_INPUT_PORT, TEST_INPUT_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;&amp;nbsp;&amp;nbsp;/* Configure channel interrupt as edge sensitive and falling edge interrupt */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, /*PININTCH(PININT_INDEX)*/0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_SetPinModeEdge(LPC_GPIO_PIN_INT, /*PININTCH(PININT_INDEX)*/0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_PININT_EnableIntLow(LPC_GPIO_PIN_INT, /*PININTCH(PININT_INDEX)*/0);&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;&amp;nbsp;&amp;nbsp;/* Enable interrupt in the NVIC */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;NVIC_ClearPendingIRQ(PININT_NVIC_NAME);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;NVIC_EnableIRQ(PININT_NVIC_NAME);&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;&amp;nbsp;&amp;nbsp;/* Spin in a loop here. All the work is done in ISR. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while (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;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 0;&lt;BR /&gt;}&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;Even if I set the interrupt priority&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;NVIC_SetPriority(PIN_INT0_IRQn, int_prio); it&amp;nbsp;don't get an interrupt on press-releasing SW1 button.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 05:21:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571564#M18416</guid>
      <dc:creator>shantanudhar</dc:creator>
      <dc:date>2016-10-05T05:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571565#M18417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, another dumb question: are you sure that the name of the default IRQ handler is "PIN_INT0_IRQHandler" and not "PININT0_IRQHandler"? There is a precompiler switch (USE_LPCOPEN_IRQHANDLER_NAMES) in the default startup which can set either of these. You could check in the name in the map file is the one you are using in the source code.&lt;/P&gt;&lt;P&gt;Apart from that, it usually helps me to look at the peripherals with the debugger. There you can see if all the configurations really are as you expect them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 07:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571565#M18417</guid>
      <dc:creator>volkeroth</dc:creator>
      <dc:date>2016-10-05T07:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571566#M18418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked in the .map file. And in the .after_vectors section I see the pin interrupt handler is defined as expected as&amp;nbsp;PIN_INT0_IRQHandler(). So, I guess, no issue with the naming. May be something else. I need to dig deep. You please let me know if you find any.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:27:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571566#M18418</guid>
      <dc:creator>shantanudhar</dc:creator>
      <dc:date>2016-10-05T09:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571567#M18419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using&amp;nbsp;&lt;STRONG&gt;lpcopen_2_20_lpcxpresso_nxp_lpcxpresso_1549&lt;/STRONG&gt; library on &lt;A href="https://community.nxp.com/t5/tag/LPCXpresso/tg-p"&gt;#LPCXpresso&lt;/A&gt; 1549 rev.&amp;nbsp;C board. I wonder if the &lt;EM&gt;&lt;STRONG&gt;GPIO pin interrupt&lt;/STRONG&gt;&lt;/EM&gt; of this version of&lt;A href="https://community.nxp.com/t5/tag/LPCOpen/tg-p"&gt;#LPCOpen&lt;/A&gt; library really works. Or I need to do any special HW setting to get it work ? I tried with switches SW1 and SW2, but with negative results every time. Any body has any idea ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 10:04:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571567#M18419</guid>
      <dc:creator>shantanudhar</dc:creator>
      <dc:date>2016-10-05T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571568#M18420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I neither use an LPCXpresso board nor the LCPOpen libs, I just can tell that it works for me with the settings I posted. Well, actually I use my own mini-libs, so I couldn't directly copy my code and I might have overlooked something that I do somewhere else, but I don't think so. There was no black magic involved. I just forgot to enable the PINT peripheral initially, but that was all.&lt;/P&gt;&lt;P&gt;Again, I would recommend to break and look at the registers step by step. Like: is the pin level visible on IO level, are all register configured as expected, was the interrupt request flag raised etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 13:37:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571568#M18420</guid>
      <dc:creator>volkeroth</dc:creator>
      <dc:date>2016-10-05T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571569#M18421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@soledad any help on this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 23:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571569#M18421</guid>
      <dc:creator>shantanudhar</dc:creator>
      <dc:date>2016-10-19T23:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 GPIO Interrupt Not Invoking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571570#M18422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have got that fixed myself. Now, the GPIO interrupt on LPC1549 is working fine. It possibly was a problem with the value of&amp;nbsp;PININTCH(ch) given in the LPCOpen &amp;nbsp;(file : pinint_15xx.h). After minor calculation, I replaced this value with my custom macro definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define&lt;SPAN class=""&gt; &lt;/SPAN&gt;TEST_INT_GPIO_PORT_PIN_VAL&lt;SPAN class=""&gt; &lt;/SPAN&gt;((32*TEST_INT_GPIO_PORT) + TEST_INT_GPIO_PIN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And some minor modifications. And, it works.all the help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help and pointers &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;‌ and &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/volkeroth"&gt;volkeroth&lt;/A&gt;‌.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 22:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-GPIO-Interrupt-Not-Invoking/m-p/571570#M18422</guid>
      <dc:creator>shantanudhar</dc:creator>
      <dc:date>2016-10-25T22:42:02Z</dc:date>
    </item>
  </channel>
</rss>

