<?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: How to wake up LPC11u68 from Deep Sleep Mode via GPIO interrupt? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-wake-up-LPC11u68-from-Deep-Sleep-Mode-via-GPIO-interrupt/m-p/730537#M29543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I did on the code. If I don’t do ProcessPowerState which puts MCU into sleep, I’m able to get the GPIO interrupt into PININT_IRQ_HANDLER. However, I cannot wake up the MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define GPIO_PININT_PIN     		0	&lt;/P&gt;&lt;P&gt;#define GPIO_PININT_PORT    		1&lt;/P&gt;&lt;P&gt;#define GPIO_PININT_INDEX   		0&lt;/P&gt;&lt;P&gt;#define PININT_IRQ_HANDLER  	PIN_INT0_IRQHandler	&lt;/P&gt;&lt;P&gt;#define PININT_NVIC_NAME    	PIN_INT0_IRQn	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PININT_IRQ_HANDLER(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	CHIP_PMU_MCUPOWER_T crntPowerSetting;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	SystemCoreClockUpdate();&lt;/P&gt;&lt;P&gt;	Board_Init();&lt;/P&gt;&lt;P&gt;	SysTick_Config(SystemCoreClock / 10000 / 30);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Chip_IOCON_PinMuxSet(LPC_IOCON, GPIO_PININT_PORT, GPIO_PININT_PIN,&lt;/P&gt;&lt;P&gt;			(IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_CLKDIV(0) | IOCON_S_MODE(3)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Chip_GPIO_SetPinDIRInput(LPC_GPIO, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;	Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_PINT);&lt;/P&gt;&lt;P&gt;	Chip_SYSCTL_SetPinInterrupt(GPIO_PININT_INDEX, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;	Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;	Chip_PININT_SetPinModeEdge(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;	Chip_PININT_EnableIntLow(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;	NVIC_ClearPendingIRQ(PININT_NVIC_NAME);&lt;/P&gt;&lt;P&gt;	NVIC_EnableIRQ(PININT_NVIC_NAME);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Chip_SYSCTL_EnablePeriphWakeup(SYSCTL_WAKEUP_GPIOINT1);&lt;/P&gt;&lt;P&gt;	crntPowerSetting = PMU_MCU_DEEP_SLEEP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	while (1) {&lt;/P&gt;&lt;P&gt;		ProcessPowerState(crntPowerSetting);&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;	return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Apr 2018 13:31:08 GMT</pubDate>
    <dc:creator>leechen</dc:creator>
    <dc:date>2018-04-15T13:31:08Z</dc:date>
    <item>
      <title>How to wake up LPC11u68 from Deep Sleep Mode via GPIO interrupt?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-wake-up-LPC11u68-from-Deep-Sleep-Mode-via-GPIO-interrupt/m-p/730535#M29541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm able to make my&amp;nbsp;LPC11u68 into deep sleep mode, but i cannot wake it up. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how I make it to sleep:&lt;/P&gt;&lt;P style="color: #60e1d6; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #cbcbcb;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;crntPowerSetting = PMU_MCU_DEEP_SLEEP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #f5f8f1; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #cbcbcb;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;ProcessPowerState(crntPowerSetting);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #f5f8f1; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 09:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-wake-up-LPC11u68-from-Deep-Sleep-Mode-via-GPIO-interrupt/m-p/730535#M29541</guid>
      <dc:creator>leechen</dc:creator>
      <dc:date>2018-04-13T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to wake up LPC11u68 from Deep Sleep Mode via GPIO interrupt?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-wake-up-LPC11u68-from-Deep-Sleep-Mode-via-GPIO-interrupt/m-p/730536#M29542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before you go into deep sleep mode you need to prepare the potential wakeup sources. For example a GPIO pin, the WAKEUP pin (if there is one), the RTC etc. Otherwise how should a GPIO know that it is supposed to act as a wakeup pin?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 14:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-wake-up-LPC11u68-from-Deep-Sleep-Mode-via-GPIO-interrupt/m-p/730536#M29542</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2018-04-13T14:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to wake up LPC11u68 from Deep Sleep Mode via GPIO interrupt?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-wake-up-LPC11u68-from-Deep-Sleep-Mode-via-GPIO-interrupt/m-p/730537#M29543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I did on the code. If I don’t do ProcessPowerState which puts MCU into sleep, I’m able to get the GPIO interrupt into PININT_IRQ_HANDLER. However, I cannot wake up the MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define GPIO_PININT_PIN     		0	&lt;/P&gt;&lt;P&gt;#define GPIO_PININT_PORT    		1&lt;/P&gt;&lt;P&gt;#define GPIO_PININT_INDEX   		0&lt;/P&gt;&lt;P&gt;#define PININT_IRQ_HANDLER  	PIN_INT0_IRQHandler	&lt;/P&gt;&lt;P&gt;#define PININT_NVIC_NAME    	PIN_INT0_IRQn	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PININT_IRQ_HANDLER(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	CHIP_PMU_MCUPOWER_T crntPowerSetting;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	SystemCoreClockUpdate();&lt;/P&gt;&lt;P&gt;	Board_Init();&lt;/P&gt;&lt;P&gt;	SysTick_Config(SystemCoreClock / 10000 / 30);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Chip_IOCON_PinMuxSet(LPC_IOCON, GPIO_PININT_PORT, GPIO_PININT_PIN,&lt;/P&gt;&lt;P&gt;			(IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_CLKDIV(0) | IOCON_S_MODE(3)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Chip_GPIO_SetPinDIRInput(LPC_GPIO, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;	Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_PINT);&lt;/P&gt;&lt;P&gt;	Chip_SYSCTL_SetPinInterrupt(GPIO_PININT_INDEX, GPIO_PININT_PORT, GPIO_PININT_PIN);&lt;/P&gt;&lt;P&gt;	Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;	Chip_PININT_SetPinModeEdge(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;	Chip_PININT_EnableIntLow(LPC_PININT, PININTCH(GPIO_PININT_INDEX));&lt;/P&gt;&lt;P&gt;	NVIC_ClearPendingIRQ(PININT_NVIC_NAME);&lt;/P&gt;&lt;P&gt;	NVIC_EnableIRQ(PININT_NVIC_NAME);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Chip_SYSCTL_EnablePeriphWakeup(SYSCTL_WAKEUP_GPIOINT1);&lt;/P&gt;&lt;P&gt;	crntPowerSetting = PMU_MCU_DEEP_SLEEP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	while (1) {&lt;/P&gt;&lt;P&gt;		ProcessPowerState(crntPowerSetting);&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;	return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2018 13:31:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-wake-up-LPC11u68-from-Deep-Sleep-Mode-via-GPIO-interrupt/m-p/730537#M29543</guid>
      <dc:creator>leechen</dc:creator>
      <dc:date>2018-04-15T13:31:08Z</dc:date>
    </item>
  </channel>
</rss>

