<?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のトピックThe interrupt handler isn't called when PIO_0_23 is assigned as a PINT</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889819#M35656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir/Madam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is Daisuke FUKUDA with NEXTY Electronics Japan. Thank you for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a certain demo board with LPCxpresso11U68. I designed that PIO_0_23&amp;nbsp;was IRQ from an IC.&lt;/P&gt;&lt;P&gt;I'm checking whether the interrupt handler is called correctly when PIO_0_23 is asserted. I'm using periph_pinint&amp;nbsp;in lpcopen_3_02_lpcxpresso_lpcxpresso_11u68.zip. However the interrupt handler isn't called when PIO_0_23 is assinged. Also, I found the interrupt handler was called corrently when PIO_0_1, PIO_0_2, PIO_1_5 and&amp;nbsp;PIO_1_6 were assigned. I tried 3 lpcxpressos but the phenomenon is reproduced.&lt;/P&gt;&lt;P&gt;Of cource, I'm going to all of PIOs but it isn't called when PIO_0_23&amp;nbsp;may be&amp;nbsp;assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my modified code. Only GPIO_PININT_PIN and GPIO_PININT_PORT were changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there anything incorrect to modify for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;&amp;nbsp;* @brief Pin Interrupt example&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* @note&lt;BR /&gt;&amp;nbsp;* Copyright(C) NXP Semiconductors, 2013&lt;BR /&gt;&amp;nbsp;* All rights reserved.&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* @par&lt;BR /&gt;&amp;nbsp;* Software that is described herein is for illustrative purposes only&lt;BR /&gt;&amp;nbsp;* which provides customers with programming information regarding the&lt;BR /&gt;&amp;nbsp;* LPC products.&amp;nbsp; This software is supplied "AS IS" without any warranties of&lt;BR /&gt;&amp;nbsp;* any kind, and NXP Semiconductors and its licensor disclaim any and&lt;BR /&gt;&amp;nbsp;* all warranties, express or implied, including all implied warranties of&lt;BR /&gt;&amp;nbsp;* merchantability, fitness for a particular purpose and non-infringement of&lt;BR /&gt;&amp;nbsp;* intellectual property rights.&amp;nbsp; NXP Semiconductors assumes no responsibility&lt;BR /&gt;&amp;nbsp;* or liability for the use of the software, conveys no license or rights under any&lt;BR /&gt;&amp;nbsp;* patent, copyright, mask work right, or any other intellectual property rights in&lt;BR /&gt;&amp;nbsp;* or to any products. NXP Semiconductors reserves the right to make changes&lt;BR /&gt;&amp;nbsp;* in the software without notification. NXP Semiconductors also makes no&lt;BR /&gt;&amp;nbsp;* representation or warranty that such application will be suitable for the&lt;BR /&gt;&amp;nbsp;* specified use without further testing or modification.&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* @par&lt;BR /&gt;&amp;nbsp;* Permission to use, copy, modify, and distribute this software and its&lt;BR /&gt;&amp;nbsp;* documentation is hereby granted, under NXP Semiconductors' and its&lt;BR /&gt;&amp;nbsp;* licensor's relevant copyrights in the software, without fee, provided that it&lt;BR /&gt;&amp;nbsp;* is used in conjunction with NXP Semiconductors microcontrollers.&amp;nbsp; This&lt;BR /&gt;&amp;nbsp;* copyright, permission, and disclaimer notice must appear in all copies of&lt;BR /&gt;&amp;nbsp;* this code.&lt;BR /&gt;&amp;nbsp;*/&lt;/P&gt;&lt;P&gt;#include "board.h"&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Private types/enumerations/variables&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;/P&gt;&lt;P&gt;#if defined(BOARD_MANLEY_11U68)&lt;BR /&gt;/* GPIO pin for PININT interrupt */&lt;BR /&gt;#define GPIO_PININT_PIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;/* GPIO pin number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;/* GPIO port number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_INDEX&amp;nbsp;&amp;nbsp; 0&amp;nbsp;/* PININT index used for GPIO mapping */&lt;BR /&gt;#define PININT_IRQ_HANDLER&amp;nbsp; PIN_INT0_IRQHandler&amp;nbsp;/* GPIO interrupt IRQ function name */&lt;BR /&gt;#define PININT_NVIC_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp; PIN_INT0_IRQn&amp;nbsp;/* GPIO interrupt NVIC interrupt name */&lt;/P&gt;&lt;P&gt;#elif defined(BOARD_NXP_LPCXPRESSO_11U68)&lt;BR /&gt;/* Mapped to PIO0_1, ISP_EN button on LPCXpresso board */&lt;BR /&gt;//#define GPIO_PININT_PIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;/* GPIO pin number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_PIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&amp;nbsp;/* GPIO pin number mapped to PININT */&lt;BR /&gt;//#define GPIO_PININT_PIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;/* GPIO pin number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 /* GPIO port number mapped to PININT */&lt;BR /&gt;//#define GPIO_PININT_PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 /* GPIO port number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_INDEX&amp;nbsp;&amp;nbsp; 0&amp;nbsp;/* PININT index used for GPIO mapping */&lt;BR /&gt;#define PININT_IRQ_HANDLER&amp;nbsp; PIN_INT0_IRQHandler&amp;nbsp;/* GPIO interrupt IRQ function name */&lt;BR /&gt;#define PININT_NVIC_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp; PIN_INT0_IRQn&amp;nbsp;/* GPIO interrupt NVIC interrupt name */&lt;/P&gt;&lt;P&gt;#else&lt;BR /&gt;#error "PININT not configured for this example"&lt;BR /&gt;#endif /* defined (BOARD_MANLEY_11U68) */&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Public types/enumerations/variables&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Private functions&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Public functions&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp;* @brief&amp;nbsp;Handle interrupt from GPIO pin or GPIO pin mapped to PININT&lt;BR /&gt;&amp;nbsp;* @return&amp;nbsp;Nothing&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;void PININT_IRQ_HANDLER(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;BR /&gt;&amp;nbsp;Board_LED_Toggle(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp;* @brief&amp;nbsp;Main program body&lt;BR /&gt;&amp;nbsp;* @return&amp;nbsp;Does not return&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;/* Generic Initialization */&lt;BR /&gt;&amp;nbsp;SystemCoreClockUpdate();&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Board_Init calls Chip_GPIO_Init and enables GPIO clock if needed,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_Init is not called again */&lt;BR /&gt;&amp;nbsp;Board_Init();&lt;BR /&gt;&amp;nbsp;Board_LED_Set(0, false);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* We'll use an optional IOCON filter (0) with a divider of 64 for the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input pin to be used for PININT */&lt;BR /&gt;//&amp;nbsp;Chip_Clock_SetIOCONFiltClockDiv(0, 64);&lt;/P&gt;&lt;P&gt;#if defined(BOARD_MANLEY_11U68)&lt;BR /&gt;&amp;nbsp;/* Configure GPIO pin as input */&lt;BR /&gt;&amp;nbsp;Chip_GPIO_SetPinDIRInput(LPC_GPIO, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Configure pin as GPIO with pullup and use optional IOCON divider&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 with 3 filter clocks for input filtering */&lt;BR /&gt;&amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, GPIO_PININT_PORT, GPIO_PININT_PIN,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_CLKDIV(0) | IOCON_S_MODE(3)));&lt;/P&gt;&lt;P&gt;#elif defined(BOARD_NXP_LPCXPRESSO_11U68)&lt;BR /&gt;&amp;nbsp;/* Configure GPIO pin as input */&lt;BR /&gt;&amp;nbsp;Chip_GPIO_SetPinDIRInput(LPC_GPIO, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Configure pin as GPIO with pullup and use optional IOCON divider&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 with 3 filter clocks for input filtering */&lt;BR /&gt;&amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, GPIO_PININT_PORT, GPIO_PININT_PIN,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_CLKDIV(0) | IOCON_S_MODE(3)));&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Enable PININT clock */&lt;BR /&gt;&amp;nbsp;Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_PINT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Configure interrupt channel for the GPIO pin in SysCon block */&lt;BR /&gt;&amp;nbsp;Chip_SYSCTL_SetPinInterrupt(GPIO_PININT_INDEX, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Configure channel interrupt as edge sensitive and falling edge interrupt */&lt;BR /&gt;&amp;nbsp;Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;BR /&gt;&amp;nbsp;Chip_PININT_SetPinModeEdge(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;BR /&gt;&amp;nbsp;Chip_PININT_EnableIntLow(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Enable interrupt in the NVIC */&lt;BR /&gt;&amp;nbsp;NVIC_ClearPendingIRQ(PININT_NVIC_NAME);&lt;BR /&gt;&amp;nbsp;NVIC_EnableIRQ(PININT_NVIC_NAME);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Go to sleep mode - LED will toggle on each wakeup event */&lt;BR /&gt;&amp;nbsp;while (1) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;/* Go to sleep state - will wake up automatically on interrupt */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Chip_PMU_SleepState(LPC_PMU);&lt;BR /&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fukuda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2019 11:31:21 GMT</pubDate>
    <dc:creator>daisukefukuda_n</dc:creator>
    <dc:date>2019-02-08T11:31:21Z</dc:date>
    <item>
      <title>The interrupt handler isn't called when PIO_0_23 is assigned as a PINT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889819#M35656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir/Madam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is Daisuke FUKUDA with NEXTY Electronics Japan. Thank you for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a certain demo board with LPCxpresso11U68. I designed that PIO_0_23&amp;nbsp;was IRQ from an IC.&lt;/P&gt;&lt;P&gt;I'm checking whether the interrupt handler is called correctly when PIO_0_23 is asserted. I'm using periph_pinint&amp;nbsp;in lpcopen_3_02_lpcxpresso_lpcxpresso_11u68.zip. However the interrupt handler isn't called when PIO_0_23 is assinged. Also, I found the interrupt handler was called corrently when PIO_0_1, PIO_0_2, PIO_1_5 and&amp;nbsp;PIO_1_6 were assigned. I tried 3 lpcxpressos but the phenomenon is reproduced.&lt;/P&gt;&lt;P&gt;Of cource, I'm going to all of PIOs but it isn't called when PIO_0_23&amp;nbsp;may be&amp;nbsp;assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my modified code. Only GPIO_PININT_PIN and GPIO_PININT_PORT were changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there anything incorrect to modify for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;&amp;nbsp;* @brief Pin Interrupt example&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* @note&lt;BR /&gt;&amp;nbsp;* Copyright(C) NXP Semiconductors, 2013&lt;BR /&gt;&amp;nbsp;* All rights reserved.&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* @par&lt;BR /&gt;&amp;nbsp;* Software that is described herein is for illustrative purposes only&lt;BR /&gt;&amp;nbsp;* which provides customers with programming information regarding the&lt;BR /&gt;&amp;nbsp;* LPC products.&amp;nbsp; This software is supplied "AS IS" without any warranties of&lt;BR /&gt;&amp;nbsp;* any kind, and NXP Semiconductors and its licensor disclaim any and&lt;BR /&gt;&amp;nbsp;* all warranties, express or implied, including all implied warranties of&lt;BR /&gt;&amp;nbsp;* merchantability, fitness for a particular purpose and non-infringement of&lt;BR /&gt;&amp;nbsp;* intellectual property rights.&amp;nbsp; NXP Semiconductors assumes no responsibility&lt;BR /&gt;&amp;nbsp;* or liability for the use of the software, conveys no license or rights under any&lt;BR /&gt;&amp;nbsp;* patent, copyright, mask work right, or any other intellectual property rights in&lt;BR /&gt;&amp;nbsp;* or to any products. NXP Semiconductors reserves the right to make changes&lt;BR /&gt;&amp;nbsp;* in the software without notification. NXP Semiconductors also makes no&lt;BR /&gt;&amp;nbsp;* representation or warranty that such application will be suitable for the&lt;BR /&gt;&amp;nbsp;* specified use without further testing or modification.&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* @par&lt;BR /&gt;&amp;nbsp;* Permission to use, copy, modify, and distribute this software and its&lt;BR /&gt;&amp;nbsp;* documentation is hereby granted, under NXP Semiconductors' and its&lt;BR /&gt;&amp;nbsp;* licensor's relevant copyrights in the software, without fee, provided that it&lt;BR /&gt;&amp;nbsp;* is used in conjunction with NXP Semiconductors microcontrollers.&amp;nbsp; This&lt;BR /&gt;&amp;nbsp;* copyright, permission, and disclaimer notice must appear in all copies of&lt;BR /&gt;&amp;nbsp;* this code.&lt;BR /&gt;&amp;nbsp;*/&lt;/P&gt;&lt;P&gt;#include "board.h"&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Private types/enumerations/variables&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;/P&gt;&lt;P&gt;#if defined(BOARD_MANLEY_11U68)&lt;BR /&gt;/* GPIO pin for PININT interrupt */&lt;BR /&gt;#define GPIO_PININT_PIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;/* GPIO pin number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;/* GPIO port number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_INDEX&amp;nbsp;&amp;nbsp; 0&amp;nbsp;/* PININT index used for GPIO mapping */&lt;BR /&gt;#define PININT_IRQ_HANDLER&amp;nbsp; PIN_INT0_IRQHandler&amp;nbsp;/* GPIO interrupt IRQ function name */&lt;BR /&gt;#define PININT_NVIC_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp; PIN_INT0_IRQn&amp;nbsp;/* GPIO interrupt NVIC interrupt name */&lt;/P&gt;&lt;P&gt;#elif defined(BOARD_NXP_LPCXPRESSO_11U68)&lt;BR /&gt;/* Mapped to PIO0_1, ISP_EN button on LPCXpresso board */&lt;BR /&gt;//#define GPIO_PININT_PIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;/* GPIO pin number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_PIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&amp;nbsp;/* GPIO pin number mapped to PININT */&lt;BR /&gt;//#define GPIO_PININT_PIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;/* GPIO pin number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 /* GPIO port number mapped to PININT */&lt;BR /&gt;//#define GPIO_PININT_PORT&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 /* GPIO port number mapped to PININT */&lt;BR /&gt;#define GPIO_PININT_INDEX&amp;nbsp;&amp;nbsp; 0&amp;nbsp;/* PININT index used for GPIO mapping */&lt;BR /&gt;#define PININT_IRQ_HANDLER&amp;nbsp; PIN_INT0_IRQHandler&amp;nbsp;/* GPIO interrupt IRQ function name */&lt;BR /&gt;#define PININT_NVIC_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp; PIN_INT0_IRQn&amp;nbsp;/* GPIO interrupt NVIC interrupt name */&lt;/P&gt;&lt;P&gt;#else&lt;BR /&gt;#error "PININT not configured for this example"&lt;BR /&gt;#endif /* defined (BOARD_MANLEY_11U68) */&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Public types/enumerations/variables&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Private functions&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Public functions&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp;* @brief&amp;nbsp;Handle interrupt from GPIO pin or GPIO pin mapped to PININT&lt;BR /&gt;&amp;nbsp;* @return&amp;nbsp;Nothing&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;void PININT_IRQ_HANDLER(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;BR /&gt;&amp;nbsp;Board_LED_Toggle(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp;* @brief&amp;nbsp;Main program body&lt;BR /&gt;&amp;nbsp;* @return&amp;nbsp;Does not return&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;/* Generic Initialization */&lt;BR /&gt;&amp;nbsp;SystemCoreClockUpdate();&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Board_Init calls Chip_GPIO_Init and enables GPIO clock if needed,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_Init is not called again */&lt;BR /&gt;&amp;nbsp;Board_Init();&lt;BR /&gt;&amp;nbsp;Board_LED_Set(0, false);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* We'll use an optional IOCON filter (0) with a divider of 64 for the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input pin to be used for PININT */&lt;BR /&gt;//&amp;nbsp;Chip_Clock_SetIOCONFiltClockDiv(0, 64);&lt;/P&gt;&lt;P&gt;#if defined(BOARD_MANLEY_11U68)&lt;BR /&gt;&amp;nbsp;/* Configure GPIO pin as input */&lt;BR /&gt;&amp;nbsp;Chip_GPIO_SetPinDIRInput(LPC_GPIO, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Configure pin as GPIO with pullup and use optional IOCON divider&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 with 3 filter clocks for input filtering */&lt;BR /&gt;&amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, GPIO_PININT_PORT, GPIO_PININT_PIN,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_CLKDIV(0) | IOCON_S_MODE(3)));&lt;/P&gt;&lt;P&gt;#elif defined(BOARD_NXP_LPCXPRESSO_11U68)&lt;BR /&gt;&amp;nbsp;/* Configure GPIO pin as input */&lt;BR /&gt;&amp;nbsp;Chip_GPIO_SetPinDIRInput(LPC_GPIO, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Configure pin as GPIO with pullup and use optional IOCON divider&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 with 3 filter clocks for input filtering */&lt;BR /&gt;&amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, GPIO_PININT_PORT, GPIO_PININT_PIN,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_CLKDIV(0) | IOCON_S_MODE(3)));&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Enable PININT clock */&lt;BR /&gt;&amp;nbsp;Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_PINT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Configure interrupt channel for the GPIO pin in SysCon block */&lt;BR /&gt;&amp;nbsp;Chip_SYSCTL_SetPinInterrupt(GPIO_PININT_INDEX, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Configure channel interrupt as edge sensitive and falling edge interrupt */&lt;BR /&gt;&amp;nbsp;Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;BR /&gt;&amp;nbsp;Chip_PININT_SetPinModeEdge(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;BR /&gt;&amp;nbsp;Chip_PININT_EnableIntLow(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Enable interrupt in the NVIC */&lt;BR /&gt;&amp;nbsp;NVIC_ClearPendingIRQ(PININT_NVIC_NAME);&lt;BR /&gt;&amp;nbsp;NVIC_EnableIRQ(PININT_NVIC_NAME);&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Go to sleep mode - LED will toggle on each wakeup event */&lt;BR /&gt;&amp;nbsp;while (1) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;/* Go to sleep state - will wake up automatically on interrupt */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Chip_PMU_SleepState(LPC_PMU);&lt;BR /&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fukuda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 11:31:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889819#M35656</guid>
      <dc:creator>daisukefukuda_n</dc:creator>
      <dc:date>2019-02-08T11:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: The interrupt handler isn't called when PIO_0_23 is assigned as a PINT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889820#M35657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="326463" data-username="daisukefukuda_nexty" href="https://community.nxp.com/people/daisukefukuda_nexty"&gt;Daisuke Fukuda&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks to contact our technical support.&lt;/P&gt;&lt;P&gt;PIO_0_1 is standard digital I/O pin,&amp;nbsp; while PIO_0_23 is digital /analog multiplexing pin,&lt;/P&gt;&lt;P&gt;so we need to disable Analog function and enable digital function when using GPIO interrupt.&lt;/P&gt;&lt;P&gt;Just add the below code , it will work:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_IOCON_PinMuxSet(LPC_IOCON, GPIO_PININT_PORT, GPIO_PININT_PIN,&lt;BR /&gt;&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; (&lt;SPAN style="font-size: 15px;"&gt;&lt;STRONG style="color: #ff0000; "&gt;0x80&lt;/STRONG&gt;&lt;/SPAN&gt;|IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_CLKDIV(0) | IOCON_S_MODE(3)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Also you can have a look at the register of 6.5.2 Pin control registers for digital/analog I/O pins of User Manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72142i5D88C03F225EA09F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 09:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889820#M35657</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-02-14T09:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: The interrupt handler isn't called when PIO_0_23 is assigned as a PINT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889821#M35658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ms. Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is Daisuke FUKDUA with NEXTY Electronics Japan. Thnak you for your prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once enabling digital IO in PIO_0_23, I was able to find the handler was called successfully.&lt;/P&gt;&lt;P&gt;Your answer is what I was looking for, thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fukuda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 01:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889821#M35658</guid>
      <dc:creator>daisukefukuda_n</dc:creator>
      <dc:date>2019-02-15T01:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: The interrupt handler isn't called when PIO_0_23 is assigned as a PINT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889822#M35659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fukuda,&lt;/P&gt;&lt;P&gt;OK , good to hear it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 10:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/The-interrupt-handler-isn-t-called-when-PIO-0-23-is-assigned-as/m-p/889822#M35659</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-02-15T10:14:22Z</dc:date>
    </item>
  </channel>
</rss>

