<?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>LPCXpresso IDEのトピックWhy is PIO1_8 not working for external interrupt input on LPC1519?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155253#M33503</link>
    <description>&lt;P&gt;I am working with the LPC1519 (ARM Cortex-M3) and trying to use Port 1, Pin 8 (PIO1_8) as an external interrupt input for a water flow sensor.&lt;/P&gt;&lt;P&gt;I configured PIO1_8 as a GPIO input and routed it to a PININT channel using the INMUX, then enabled falling-edge detection and enabled the IRQ. However, the interrupt never triggers when pulses are applied to P1_8.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2025 12:35:55 GMT</pubDate>
    <dc:creator>Trups_123</dc:creator>
    <dc:date>2025-08-20T12:35:55Z</dc:date>
    <item>
      <title>Why is PIO1_8 not working for external interrupt input on LPC1519?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155253#M33503</link>
      <description>&lt;P&gt;I am working with the LPC1519 (ARM Cortex-M3) and trying to use Port 1, Pin 8 (PIO1_8) as an external interrupt input for a water flow sensor.&lt;/P&gt;&lt;P&gt;I configured PIO1_8 as a GPIO input and routed it to a PININT channel using the INMUX, then enabled falling-edge detection and enabled the IRQ. However, the interrupt never triggers when pulses are applied to P1_8.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 12:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155253#M33503</guid>
      <dc:creator>Trups_123</dc:creator>
      <dc:date>2025-08-20T12:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is PIO1_8 not working for external interrupt input on LPC1519?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155440#M33504</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222924"&gt;@Trups_123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;How are you generating the pulses that are applied to P1_8?&lt;/P&gt;
&lt;P&gt;Also, could you please share a snippet of your code where you set up pin P1_8 as an external interrupt?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Pablo&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 17:52:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155440#M33504</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2025-08-20T17:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is PIO1_8 not working for external interrupt input on LPC1519?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155762#M33505</link>
      <description>#define FLOW_PIN_PORT 1&lt;BR /&gt;#define FLOW_PIN_NUM 8&lt;BR /&gt;#define FLOW_IRQ_NUM PIN_INT0_IRQn // Example: use PIN_INT0&lt;BR /&gt;#define FLOW_CH PININTCH0&lt;BR /&gt;&lt;BR /&gt;volatile uint32_t pulse_count = 0;&lt;BR /&gt;&lt;BR /&gt;/* Interrupt Service Routine for flow sensor */&lt;BR /&gt;void PIN_INT0_IRQHandler(void) {&lt;BR /&gt;pulse_count++; // Count pulses&lt;BR /&gt;Chip_PININT_ClearFallStates(LPC_PININT, FLOW_CH);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;int main(void) {&lt;BR /&gt;SystemCoreClockUpdate();&lt;BR /&gt;&lt;BR /&gt;// Initialize GPIO&lt;BR /&gt;Chip_GPIO_Init(LPC_GPIO_PORT);&lt;BR /&gt;Chip_IOCON_PinMuxSet(LPC_IOCON, FLOW_PIN_PORT, FLOW_PIN_NUM,&lt;BR /&gt;(IOCON_FUNC0 | IOCON_MODE_PULLUP));&lt;BR /&gt;Chip_GPIO_SetPinDIRInput(LPC_GPIO_PORT, FLOW_PIN_PORT, FLOW_PIN_NUM);&lt;BR /&gt;&lt;BR /&gt;// Map pin to interrupt channel&lt;BR /&gt;Chip_INMUX_PinIntSel(0, FLOW_PIN_PORT, FLOW_PIN_NUM);&lt;BR /&gt;&lt;BR /&gt;// Configure falling-edge interrupt&lt;BR /&gt;Chip_PININT_ClearIntStatus(LPC_PININT, FLOW_CH);&lt;BR /&gt;Chip_PININT_SetPinModeEdge(LPC_PININT, FLOW_CH);&lt;BR /&gt;Chip_PININT_EnableIntLow(LPC_PININT, FLOW_CH);&lt;BR /&gt;&lt;BR /&gt;// Enable NVIC&lt;BR /&gt;NVIC_ClearPendingIRQ(FLOW_IRQ_NUM);&lt;BR /&gt;NVIC_EnableIRQ(FLOW_IRQ_NUM);&lt;BR /&gt;&lt;BR /&gt;while(1) {&lt;BR /&gt;// Example: measure flow every 1 second&lt;BR /&gt;uint32_t start_count = pulse_count;&lt;BR /&gt;Chip_Clock_System_BusyWait_ms(1000);&lt;BR /&gt;uint32_t pulses_per_sec = pulse_count - start_count;&lt;BR /&gt;&lt;BR /&gt;float flow_rate = (float)pulses_per_sec / 7.5f; // L/min&lt;BR /&gt;printf("Flow Rate: %.2f L/min, Total pulses: %lu\n", flow_rate, pulse_count);&lt;BR /&gt;}</description>
      <pubDate>Thu, 21 Aug 2025 06:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155762#M33505</guid>
      <dc:creator>Trups_123</dc:creator>
      <dc:date>2025-08-21T06:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is PIO1_8 not working for external interrupt input on LPC1519?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155765#M33506</link>
      <description>&lt;P&gt;#include "chip.h"&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;#define FLOW_PIN_PORT 1&lt;BR /&gt;#define FLOW_PIN_NUM 8&lt;BR /&gt;#define FLOW_IRQ_NUM PIN_INT0_IRQn // Using PININT0&lt;BR /&gt;#define FLOW_CH PININTCH0&lt;/P&gt;&lt;P&gt;volatile uint32_t pulse_count = 0;&lt;/P&gt;&lt;P&gt;/* Interrupt Service Routine for flow sensor */&lt;BR /&gt;void PIN_INT0_IRQHandler(void) {&lt;BR /&gt;if (Chip_PININT_GetFallStates(LPC_PININT) &amp;amp; (1 &amp;lt;&amp;lt; FLOW_CH)) {&lt;BR /&gt;pulse_count++; // Count pulses&lt;BR /&gt;Chip_PININT_ClearIntStatus(LPC_PININT, FLOW_CH);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;int main(void) {&lt;BR /&gt;SystemCoreClockUpdate();&lt;/P&gt;&lt;P&gt;// Initialize GPIO&lt;BR /&gt;Chip_GPIO_Init(LPC_GPIO_PORT);&lt;BR /&gt;Chip_IOCON_PinMuxSet(LPC_IOCON, FLOW_PIN_PORT, FLOW_PIN_NUM,&lt;BR /&gt;(IOCON_FUNC0 | IOCON_MODE_PULLUP));&lt;BR /&gt;Chip_GPIO_SetPinDIRInput(LPC_GPIO_PORT, FLOW_PIN_PORT, FLOW_PIN_NUM);&lt;/P&gt;&lt;P&gt;// Map pin to interrupt channel (channel 0)&lt;BR /&gt;Chip_INMUX_PinIntSel(0, FLOW_PIN_PORT, FLOW_PIN_NUM);&lt;/P&gt;&lt;P&gt;// Configure falling-edge interrupt&lt;BR /&gt;Chip_PININT_ClearIntStatus(LPC_PININT, FLOW_CH);&lt;BR /&gt;Chip_PININT_SetPinModeEdge(LPC_PININT, FLOW_CH);&lt;BR /&gt;Chip_PININT_EnableIntLow(LPC_PININT, FLOW_CH);&lt;/P&gt;&lt;P&gt;// Enable NVIC for PIN_INT0&lt;BR /&gt;NVIC_ClearPendingIRQ(FLOW_IRQ_NUM);&lt;BR /&gt;NVIC_EnableIRQ(FLOW_IRQ_NUM);&lt;/P&gt;&lt;P&gt;while (1) {&lt;BR /&gt;uint32_t start_count = pulse_count;&lt;/P&gt;&lt;P&gt;// crude 1 second delay loop&lt;BR /&gt;for (volatile uint32_t i = 0; i &amp;lt; (SystemCoreClock/1000 * 1000); i++);&lt;/P&gt;&lt;P&gt;uint32_t pulses_per_sec = pulse_count - start_count;&lt;BR /&gt;float flow_rate = (float)pulses_per_sec / 7.5f; // L/min (depends on sensor spec!)&lt;/P&gt;&lt;P&gt;printf("Flow Rate: %.2f L/min, Total pulses: %lu\n",&lt;BR /&gt;flow_rate, pulse_count);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 06:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2155765#M33506</guid>
      <dc:creator>Trups_123</dc:creator>
      <dc:date>2025-08-21T06:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is PIO1_8 not working for external interrupt input on LPC1519?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2159927#M33507</link>
      <description>&lt;P&gt;waiting for solution&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 12:08:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2159927#M33507</guid>
      <dc:creator>Trups_123</dc:creator>
      <dc:date>2025-08-28T12:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is PIO1_8 not working for external interrupt input on LPC1519?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2160884#M33508</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222924"&gt;@Trups_123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I apologize for taking a while to get back to you.&lt;/P&gt;
&lt;P&gt;I wasn't able to follow the entire configuration because I couldn't find the definition for LPC_GPIO_PORT. However, I recommend checking the periph_pinint example, which configures a pin interrupt triggered by a falling edge.&lt;/P&gt;
&lt;P&gt;You can find this example in MCUXpresso by following these steps:&lt;/P&gt;
&lt;P&gt;Quickstart Panel -&amp;gt; Create or import project -&amp;gt; Import project(s) from file system.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pablo_Ramos_0-1756503468961.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/354860i5A21DDBF6DDDB632/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pablo_Ramos_0-1756503468961.png" alt="Pablo_Ramos_0-1756503468961.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Project archive (zip) -&amp;gt; Browse -&amp;gt; LPCOpen -&amp;gt; lpcxpresso_1549&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pablo_Ramos_1-1756503511164.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/354861i02562A5186CE9457/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pablo_Ramos_1-1756503511164.png" alt="Pablo_Ramos_1-1756503511164.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select lpc_board_nxp_lpcxpresso_1549, lpc_chip_15xx and periph_pint&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pablo_Ramos_2-1756503530328.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/354862i966DFF200D5F074A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pablo_Ramos_2-1756503530328.png" alt="Pablo_Ramos_2-1756503530328.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Pablo&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 21:43:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-is-PIO1-8-not-working-for-external-interrupt-input-on/m-p/2160884#M33508</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2025-08-29T21:43:06Z</dc:date>
    </item>
  </channel>
</rss>

