<?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: lpc1517 pinint</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1517-pinint/m-p/885676#M35508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Juan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went ahead and checked both pin interruptions using&amp;nbsp;an example code which toggles the led on the board when the interruption occurs.I've attached the folder which contains the example so you can take a look.&lt;/P&gt;&lt;P&gt;I got this example from the LPCOpen Package for the LPC1549 which should work for the LPC1517. The following link shows you how to import the examples for MCUXpresso IDE:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A href="https://www.nxp.com/video/mcuxpresso-ide-using-lpcopen-examples:MCUXPRESSO-IDE-USING-LPCOPEN" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.nxp.com/video/mcuxpresso-ide-using-lpcopen-examples:MCUXPRESSO-IDE-USING-LPCOPEN&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two parameters that I changed to 11 &amp;amp; 12 which are located in the "pininit.c" file, are the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define TEST_INPUT_PIN 11&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;/* GPIO pin number mapped to PININT */&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define TEST_INPUT_PIN_BIT 11&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2019 22:39:16 GMT</pubDate>
    <dc:creator>Sabina_Bruce</dc:creator>
    <dc:date>2019-02-07T22:39:16Z</dc:date>
    <item>
      <title>lpc1517 pinint</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1517-pinint/m-p/885675#M35507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_PININT_Init(LPC_GPIO_PIN_INT); //--&amp;gt; CLOCK&lt;BR /&gt; &lt;BR /&gt; //PIN INTERRUPT&lt;BR /&gt; Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 11, (IOCON_MODE_INACT | IOCON_DIGMODE_EN));&lt;BR /&gt; Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 12, (IOCON_MODE_INACT | IOCON_DIGMODE_EN));&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; /* Configure GPIO pin as input */&lt;BR /&gt; Chip_GPIO_SetPinDIRInput(LPC_GPIO, 0, 11);&lt;BR /&gt; Chip_GPIO_SetPinDIRInput(LPC_GPIO, 0, 12); &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; //CREO QUE NO HACE FALTA&lt;BR /&gt; //Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_PININT); /* Enable PININT clock */&lt;BR /&gt; //Chip_SYSCTL_PeriphReset(RESET_PININT); /* Reset the PININT block */&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Chip_SWM_DisableFixedPin(SWM_FIXED_ADC1_3);&lt;BR /&gt; Chip_SWM_DisableFixedPin(SWM_FIXED_DAC_OUT);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; //-----------------&amp;gt;&amp;gt;0 INT&lt;BR /&gt; Chip_INMUX_PinIntSel(0, 0,11); //ON_OFF PUSH LPC_INMUX-&amp;gt;PINTSEL[pintSel] = (portNum * 32) + pinNum;&lt;BR /&gt; //LPC_INMUX-&amp;gt;PINTSEL[0] = 0x0B; &lt;BR /&gt; //-----------------&amp;gt;&amp;gt;1 INT&lt;BR /&gt; Chip_INMUX_PinIntSel(1, 0,12); //LINK_PUSH&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; /*&lt;BR /&gt; Chip_PININT_SetPinModeEdge(LPC_GPIO_PIN_INT, 0x00000003); //POR FLANCO ISEL para INT_0/INT_1&lt;BR /&gt; LPC_GPIO_PIN_INT-&amp;gt;SIENR |= 0x00000003; &lt;BR /&gt; LPC_GPIO_PIN_INT-&amp;gt;IENR |= 0x00000003; &lt;BR /&gt; LPC_GPIO_PIN_INT-&amp;gt;SIENF |= 0x00000003; &lt;BR /&gt; LPC_GPIO_PIN_INT-&amp;gt;IENF |= 0x00000003;&lt;BR /&gt; */&lt;BR /&gt; &lt;BR /&gt; /* Configure channel interrupt as edge sensitive and falling edge interrupt */&lt;BR /&gt; Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, PININTCH(0));&lt;BR /&gt; Chip_PININT_SetPinModeEdge(LPC_GPIO_PIN_INT, PININTCH(0));&lt;BR /&gt; Chip_PININT_EnableIntLow(LPC_GPIO_PIN_INT, PININTCH(0));&lt;BR /&gt; &lt;BR /&gt; Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, PININTCH(1));&lt;BR /&gt; Chip_PININT_SetPinModeEdge(LPC_GPIO_PIN_INT, PININTCH(1));&lt;BR /&gt; Chip_PININT_EnableIntLow(LPC_GPIO_PIN_INT, PININTCH(1));&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; /* Enable PIN EXT 0/1 interrupt */&lt;BR /&gt; NVIC_ClearPendingIRQ(PIN_INT0_IRQn);&lt;BR /&gt; NVIC_EnableIRQ(PIN_INT0_IRQn);&lt;BR /&gt; &lt;BR /&gt; NVIC_ClearPendingIRQ(PIN_INT1_IRQn);&lt;BR /&gt; NVIC_EnableIRQ(PIN_INT1_IRQn);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 10:23:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1517-pinint/m-p/885675#M35507</guid>
      <dc:creator>juan_moya</dc:creator>
      <dc:date>2019-02-06T10:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1517 pinint</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1517-pinint/m-p/885676#M35508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Juan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went ahead and checked both pin interruptions using&amp;nbsp;an example code which toggles the led on the board when the interruption occurs.I've attached the folder which contains the example so you can take a look.&lt;/P&gt;&lt;P&gt;I got this example from the LPCOpen Package for the LPC1549 which should work for the LPC1517. The following link shows you how to import the examples for MCUXpresso IDE:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A href="https://www.nxp.com/video/mcuxpresso-ide-using-lpcopen-examples:MCUXPRESSO-IDE-USING-LPCOPEN" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.nxp.com/video/mcuxpresso-ide-using-lpcopen-examples:MCUXPRESSO-IDE-USING-LPCOPEN&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two parameters that I changed to 11 &amp;amp; 12 which are located in the "pininit.c" file, are the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define TEST_INPUT_PIN 11&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;/* GPIO pin number mapped to PININT */&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define TEST_INPUT_PIN_BIT 11&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 22:39:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1517-pinint/m-p/885676#M35508</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-02-07T22:39:16Z</dc:date>
    </item>
  </channel>
</rss>

