<?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: Capturing GPIO edge change during PowerDown in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Capturing-GPIO-edge-change-during-PowerDown/m-p/996601#M8429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arpad, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry for the inconveniences this may cause, but there's no existing implementation for an edge detection flag during sleep mode for this device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The available options for edge detection are the ones implemented for GPIO and EXTIO, however, these are designed to wake the device up instead of just setting a flag, and will cause the device to exit sleep or power down modes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2020 16:29:41 GMT</pubDate>
    <dc:creator>Sebastian_Del_Rio</dc:creator>
    <dc:date>2020-01-27T16:29:41Z</dc:date>
    <item>
      <title>Capturing GPIO edge change during PowerDown</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Capturing-GPIO-edge-change-during-PowerDown/m-p/996600#M8428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On QN908x how can I capture a &lt;STRONG&gt;'falling edge change'&lt;/STRONG&gt; on PA6 in PowerDown0 mode without waking up the system?&lt;BR /&gt;Wake up is periodically triggered by RTC, after wake up I'm interested if there was a level change by reading a pending flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using &lt;STRONG&gt;GPIO pin interrupt&lt;/STRONG&gt; didn't capture level change during PowerDown0 (via pending flag):&lt;BR /&gt; GPIO_SetFallingEdgeInterrupt(GPIOA, BIT32(DIO_EXTI_INP_PIN));&lt;BR /&gt; GPIO_EnableInterrupt(GPIOA, BIT32(DIO_EXTI_INP_PIN));&lt;BR /&gt; // actual NVIC interrup is not required, only looking for flag&lt;BR /&gt; // PowerDown0 &lt;BR /&gt; // toggle DIO_EXTI_INP_PIN&lt;BR /&gt; // after wakeup by RTC, this didn't capture capture toggling&lt;BR /&gt; if(GPIO_GetPinsInterruptFlags(GPIOA) &amp;amp; BIT32(DIO_EXTI_INP_PIN))&lt;BR /&gt; It works corrent during non powerdown mode.&lt;BR /&gt; &lt;BR /&gt;Using&lt;STRONG&gt; EXTI interrupt&lt;/STRONG&gt; also didn't work.&lt;BR /&gt; NVIC_ClearPendingIRQ(EXT_GPIO_WAKEUP_IRQn);&lt;BR /&gt; NVIC_EnableIRQ(EXT_GPIO_WAKEUP_IRQn);&lt;BR /&gt; if(NVIC_GetPendingIRQ(EXT_GPIO_WAKEUP_IRQn))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QN seems to be missing one layer where I assign one GPIO to EXTI channel, and level triggers and EXTI_GetITStatus(EXTI_Line0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Level changes&lt;/STRONG&gt; are only available for wakeup, but I don't need this kind of wakeup, only a flag that level change happend.&lt;BR /&gt; SYSCON-&amp;gt;PIO_WAKEUP_LVL0 = mask; /* disables others */&lt;BR /&gt; SYSCON-&amp;gt;PIO_WAKEUP_LVL1 = 0u; /* disables others */&lt;BR /&gt; SYSCON-&amp;gt;PIO_WAKEUP_EN0 = mask;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 12:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Capturing-GPIO-edge-change-during-PowerDown/m-p/996600#M8428</guid>
      <dc:creator>arpad_toth</dc:creator>
      <dc:date>2020-01-23T12:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing GPIO edge change during PowerDown</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Capturing-GPIO-edge-change-during-PowerDown/m-p/996601#M8429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arpad, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry for the inconveniences this may cause, but there's no existing implementation for an edge detection flag during sleep mode for this device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The available options for edge detection are the ones implemented for GPIO and EXTIO, however, these are designed to wake the device up instead of just setting a flag, and will cause the device to exit sleep or power down modes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2020 16:29:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Capturing-GPIO-edge-change-during-PowerDown/m-p/996601#M8429</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-01-27T16:29:41Z</dc:date>
    </item>
  </channel>
</rss>

