<?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 Mising port pin interrupt when switching from LLS to RUN mode  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623369#M37313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use KL05 (mkl05z8vfk4) &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;microcontroller in LLS (Low Leakage Stop) mode.&lt;/P&gt;&lt;P&gt;I configured to waking up the processor from LLS with LLWU external pin PTA7 (LLWU_P3) on rising edge also I share the same pin as port interrupt pin on same edge detection.&lt;/P&gt;&lt;P&gt;When I trigger the pin the Cpu_OnLLSWakeUpINT() execute but port interrupt handler does not execute.&lt;/P&gt;&lt;P&gt;Q: Where should I share pin in processor component on Low power mode settings or in PORTA component?&lt;/P&gt;&lt;P&gt;Q: How to setup the pin to enable port interrupt handler execution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 14:14:11 GMT</pubDate>
    <dc:creator>aleksandartrajk</dc:creator>
    <dc:date>2017-01-17T14:14:11Z</dc:date>
    <item>
      <title>Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623369#M37313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use KL05 (mkl05z8vfk4) &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;microcontroller in LLS (Low Leakage Stop) mode.&lt;/P&gt;&lt;P&gt;I configured to waking up the processor from LLS with LLWU external pin PTA7 (LLWU_P3) on rising edge also I share the same pin as port interrupt pin on same edge detection.&lt;/P&gt;&lt;P&gt;When I trigger the pin the Cpu_OnLLSWakeUpINT() execute but port interrupt handler does not execute.&lt;/P&gt;&lt;P&gt;Q: Where should I share pin in processor component on Low power mode settings or in PORTA component?&lt;/P&gt;&lt;P&gt;Q: How to setup the pin to enable port interrupt handler execution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 14:14:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623369#M37313</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-17T14:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623370#M37314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LLS mode the LLWU is active and so will wake up to RUN mode when the edge takes place.&lt;/P&gt;&lt;P&gt;The Port interrupt is not active in LLS and so it won't trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively in RUN mode an edge will cause the port interrupt to fire but not the wake up interrupt (since the LLWU is not active&amp;nbsp; RUN mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that you will always only get one interrupt; the one depending on the mode at that point in time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KL05Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL05Z.html&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FLLWU.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/LLWU.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 01:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623370#M37314</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-18T01:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623371#M37315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark &lt;/P&gt;&lt;P&gt;I have implemented port interrupt handler on 2 different PORT pins (PORTA and PORTB) (3-axis sensor whit 2 interrupt lines) on two different priorities. All port handlers use I2C communication and it works perfectly. I would like to implement LLS mode for low power consumption, but considering your explanation, it seems I can not share same pin edge detection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp; Cpu_OnLLSWakeUpINT()&amp;nbsp; I check the source on wake up and read through I2C, but communication gets stuck (see picture below) -- I do not know the reason -- processor is in&amp;nbsp; RUN and as far as I know all activities should&amp;nbsp;work normally. Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C_problem.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14083i42CB3EACA972885E/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C_problem.png" alt="I2C_problem.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:34:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623371#M37315</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-18T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623372#M37316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello Aleksandar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand correctly you have woken the processor from LLS mode with a LLWU port event, which you detect as the reason and use it to start an I2C operation. The I2C operation, however, doesn't continue as expected after the slave address has been sent (and acknowledged).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the I2C operation looks OK I would suggest that you have a problem with its interrupt no longer being detected(?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know the libraries that you are using but in case of problems there is a complete solution for your device at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KL05Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL05Z.html&lt;/A&gt;&lt;SPAN&gt; which includes all low power modes, I2C and everything that a KL05 needs and has been proven in product use. It allows the KL05 to be simulated in (approx.) real time (including I2C devices). &lt;/SPAN&gt;&lt;EM&gt;The binary at the link includes accelerometer operation on the FRDM board and also low power modes.&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C solution: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTasker_I2C.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTasker_I2C.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 15:16:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623372#M37316</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-18T15:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623373#M37317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;GPIO_Init can be used to configure PTA7as port interrupt.&lt;/P&gt;&lt;P&gt;The ISR of PTA7 need to be implemented by user.&lt;/P&gt;&lt;P&gt;Please refer below image:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTA7 interrupt.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13239iB518B96C2DA1E467/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTA7 interrupt.png" alt="PTA7 interrupt.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 08:47:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623373#M37317</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-01-20T08:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623374#M37318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robin &lt;/P&gt;&lt;P&gt;I have configuration like your advice. My processor most of the time is in LLS mode and when edge happen on the pin (PTA7- LLWU_P3)&amp;nbsp; processor execute LLWU pin handler but does not execute port interrupt handler (where I use I2C communication).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 08:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623374#M37318</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-23T08:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623375#M37319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark &lt;/P&gt;&lt;P&gt;Yes, you have understооd correctly.&lt;/P&gt;&lt;P&gt;In LLWU port handler I start I2C communication but gets stuck.&lt;/P&gt;&lt;P&gt;What do you mean (you have a problem with its interrupt no longer being detected(?))?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:33:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623375#M37319</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-23T09:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623376#M37320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your image shows that the processor wakes up and sends something across the I2C bus. It shows that the I2C slave ACKs, but the master holds the SCL line low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to compare this with the "good" case and work out what the 'difference' is and then 'why' there is the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I as assuming that the I2C driver is interrupt driven and that is why I suggested that maybe you have no more interrupt from it after waking - possibly explaining why it behaves differently. Possibly you move back to LLS mode again before the I2C transmission has completed (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 12:40:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623376#M37320</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-23T12:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623377#M37321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In LLS mode: NVIC is disabled and LLWU is used to wake up . (Port interrupt is not active in LLS and so it won't trigger)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LLS (Low Leakage Stop).png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12965iF340EEC80E54A3CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="LLS (Low Leakage Stop).png" alt="LLS (Low Leakage Stop).png" /&gt;&lt;/span&gt;&lt;BR /&gt;When first edge happens, it resumes normal run mode operation by executing the LLWU interrupt service routine. After recovery from LLS, the LLWU is immediately disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In RUN mode: the edge will cause the port interrupt but not the wake up interrupt (since the LLWU is not active&amp;nbsp; RUN mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to "I configured to waking up the processor from LLS with LLWU external pin PTA7 (LLWU_P3) on rising edge also I share the same pin as port interrupt pin on same edge detection." I think what you want is: the first edge wakeup MCU to Run mode, the second edge cause port interrupt.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C_problem.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12999i55D27BC4D6870385/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C_problem.png" alt="I2C_problem.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am little confuse, do you want to one edge cause two interrupts(LLWU interrupt and Port interrupt)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 07:11:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623377#M37321</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-01-24T07:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623378#M37322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark &lt;/P&gt;&lt;P&gt;I appreciate your time.&lt;/P&gt;&lt;P&gt;Yes, the I2C driver is interrupt driven.&lt;/P&gt;&lt;P&gt;I tested reading trough I2C before put processor in LLS mode and work fine. (see picture below). After that, I put the processor in LLS mode.&lt;/P&gt;&lt;P&gt;Then I trigger the wake-up pin PTA7 and in LLWU handler read again, I2C get stuck also processor get stuck. The CI2C1_OnMasterBlockSent() and CI2C1_OnMasterBlockReceived() does not execute. (picture in the &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;previous&lt;/SPAN&gt;&lt;/SPAN&gt; post)&lt;/P&gt;&lt;P&gt;I check that processor do not go in LLS mode.&lt;/P&gt;&lt;P&gt;I have several sources to wake-up the processor, like LPTMR0 and in its interrupt handler, I use the I2C communication and work without issues(if PTA7 pin is turned-off as LLWU interrupt pin).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea, probably I should reinti I2C or something like that?&lt;span class="lia-inline-image-display-wrapper" image-alt="readReg_in RUN_mode.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12203iDDBC655871794A45/image-size/large?v=v2&amp;amp;px=999" role="button" title="readReg_in RUN_mode.png" alt="readReg_in RUN_mode.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:22:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623378#M37322</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-24T13:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623379#M37323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robin,&lt;/P&gt;&lt;P&gt;I understood very wall, you are right. Reading the documentation and watching options in Kinetis studio about pin shearing I thought that I can use same edge detection in both handlers. (It is not true.)&lt;/P&gt;&lt;P&gt;Regarding all those things, now I transfer my code from port interrupt handler to LLWU handler and I have issues whit I2C. You can see the conversation whit Mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623379#M37323</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-24T13:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623380#M37324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a test on the FRDM-KL05Z, where I run I2C continuously to monitor the accelerometer on the board.&lt;BR /&gt;I then command it to go to LLS mode and the current drops to around 3uA (about 5mA when operating at full speed).&lt;BR /&gt;Using LLWU_P3 I wake it up and the I2C continues normally.&lt;BR /&gt;Here is the scope shot of wake-up from LLS (Channel 2 is PTA7):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12404iC8389DB736AE9139/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the debug interface output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12432i5BD63ECF50946E9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When not in LLS mode the I2C is read as fast as possible (back-to-back requests).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I see no reason for problems waking and using I2C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a FRDM-KL05Z you can test with the attached binary. Debug is on OpenSDA UART at 115'200. Type 'L' on debug UART to switch to LLS. Falling edge on J7-4 wakes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 00:29:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623380#M37324</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-25T00:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623381#M37325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a short video showing how I set up the project to quickly test this complete operation as well as showing the real-time behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FiZEMRiDmHzw" rel="nofollow" target="_blank"&gt;https://youtu.be/iZEMRiDmHzw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing real developments and not just learning by doing you can get a complete working solution in the uTasker project - it is open source or supported, depending on requirements, but it saves time using proven code rather than needing to piece together and fix example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 03:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623381#M37325</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-25T03:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623382#M37326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved the problem finally, it was in interrupt priority levels.&lt;/P&gt;&lt;P&gt;I appreciate your time and explanation.&lt;/P&gt;&lt;P&gt;Mark thanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623382#M37326</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-25T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623383#M37327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One week ago I suggested&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Since the I2C operation looks OK I would suggest that you have a problem with its interrupt no longer being detected(?)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain why using the LLS mode caused the interrupt priorities to change so that it stopped?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:03:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623383#M37327</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-25T16:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623384#M37328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the LLS mode did not cause the interrupt priorities to change. Yesterday I saw that I have setup for LLWU interrupt as high priority and I2C as priority level 1, that was the reason to stopped my I2C communication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 09:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623384#M37328</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-26T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623385#M37329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interrupt priority settings is &lt;STRONG&gt;not a general explanation&lt;/STRONG&gt; of a peripheral interrupt no longer being recognised; &lt;EM&gt;one can set any mixtures of priority levels without causing such an effect&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only time that this would be an explanation is when the LLWU interrupt routine never terminates and so you need it to be pre-empted by a higher priority interrupt for other things to operate (nested interrupts).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that your modification just makes it "look" like you have correct operation but the LLWU interrupt service routine is never quit or continuously interrupting? Are you clearing the LLWU interrupt source after you have woken up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623385#M37329</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-26T16:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mising port pin interrupt when switching from LLS to RUN mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623386#M37330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the documentation and watching options in Kinetis studio about pin shearing I thought that I can use same edge detection in both handlers. (It is not true.)&lt;/P&gt;&lt;P&gt;I understood that In LLS mode: NVIC is disabled and only LLWU is used to wake-up. In Run mode: LLWU&amp;nbsp;is disabled and it detected peripheral interrupts.&lt;/P&gt;&lt;P&gt;I made the test to see that LLWU interrupt routine terminate and enter LLS mode again. All is fine.&lt;/P&gt;&lt;P&gt;My LLWU interrupt service routine enter and exit only when I trigger the pin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, after LLWU ISR I clear the LLWU flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aleksandar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 15:28:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mising-port-pin-interrupt-when-switching-from-LLS-to-RUN-mode/m-p/623386#M37330</guid>
      <dc:creator>aleksandartrajk</dc:creator>
      <dc:date>2017-01-30T15:28:21Z</dc:date>
    </item>
  </channel>
</rss>

