<?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 K22: Example for LPUART that can work in VLPS mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1430719#M62679</link>
    <description>&lt;P&gt;I'm trying to get LPUART to work while CPU is in VLPS mode. I'm using the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;        CLOCK_EnableClock(kCLOCK_PortD);
        PORT_SetPinMux(PORTD, 2U, kPORT_MuxAlt6);
        PORT_SetPinMux(PORTD, 3U, kPORT_MuxAlt6);
        CLOCK_SetLpuartClock(2U);

        oscer_config_t oscerConfig;
        oscerConfig.enableMode = kOSC_ErClkEnable | kOSC_ErClkEnableInStop;
        oscerConfig.erclkDiv = 0;

        OSC_SetExtRefClkConfig(OSC0, &amp;amp;oscerConfig);

        lpuart_config_t config;
        LPUART_GetDefaultConfig(&amp;amp;config);
        config.baudRate_Bps = 115200;
        config.enableTx = true;
        config.enableRx = true;

        LPUART_Init(LPUART0, &amp;amp;config, CLOCK_GetFreq(kCLOCK_Osc0ErClk));
        LPUART_EnableInterrupts(LPUART0, kLPUART_RxDataRegFullInterruptEnable);
        EnableIRQ(LPUART0_IRQn);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only works while by debugger is connected and CPU is prevented from going to stop mode. If i enter stop mode, its not getting interrupts anymore. Are there any code examples that i can refer to?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 12:48:23 GMT</pubDate>
    <dc:creator>guest253456</dc:creator>
    <dc:date>2022-03-18T12:48:23Z</dc:date>
    <item>
      <title>K22: Example for LPUART that can work in VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1430719#M62679</link>
      <description>&lt;P&gt;I'm trying to get LPUART to work while CPU is in VLPS mode. I'm using the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;        CLOCK_EnableClock(kCLOCK_PortD);
        PORT_SetPinMux(PORTD, 2U, kPORT_MuxAlt6);
        PORT_SetPinMux(PORTD, 3U, kPORT_MuxAlt6);
        CLOCK_SetLpuartClock(2U);

        oscer_config_t oscerConfig;
        oscerConfig.enableMode = kOSC_ErClkEnable | kOSC_ErClkEnableInStop;
        oscerConfig.erclkDiv = 0;

        OSC_SetExtRefClkConfig(OSC0, &amp;amp;oscerConfig);

        lpuart_config_t config;
        LPUART_GetDefaultConfig(&amp;amp;config);
        config.baudRate_Bps = 115200;
        config.enableTx = true;
        config.enableRx = true;

        LPUART_Init(LPUART0, &amp;amp;config, CLOCK_GetFreq(kCLOCK_Osc0ErClk));
        LPUART_EnableInterrupts(LPUART0, kLPUART_RxDataRegFullInterruptEnable);
        EnableIRQ(LPUART0_IRQn);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only works while by debugger is connected and CPU is prevented from going to stop mode. If i enter stop mode, its not getting interrupts anymore. Are there any code examples that i can refer to?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 12:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1430719#M62679</guid>
      <dc:creator>guest253456</dc:creator>
      <dc:date>2022-03-18T12:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: K22: Example for LPUART that can work in VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1431352#M62698</link>
      <description>&lt;PRE&gt;OSC_SetExtRefClkConfig(OSC0, &amp;amp;oscerConfig);&lt;/PRE&gt;&lt;P&gt;Is the external Osc configured to work in the low power mode?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1431352#M62698</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2022-03-21T14:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: K22: Example for LPUART that can work in VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1431641#M62705</link>
      <description>&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;oscer_config_t oscerConfig;
oscerConfig.enableMode = kOSC_ErClkEnable | kOSC_ErClkEnableInStop;
oscerConfig.erclkDiv = 0;&lt;/LI-CODE&gt;&lt;P&gt;This is enough?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 04:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1431641#M62705</guid>
      <dc:creator>guest253456</dc:creator>
      <dc:date>2022-03-22T04:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: K22: Example for LPUART that can work in VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1431985#M62710</link>
      <description>&lt;P&gt;Which all power modes can the LPUART work? I was trying with VLPS which does not work, nor with Stop mode with "kSMC_PartialStop". It only works with "kSMC_PartialStop1" but by then the power consumption is very high(20mW vs &amp;lt;4mW)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 12:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1431985#M62710</guid>
      <dc:creator>guest253456</dc:creator>
      <dc:date>2022-03-22T12:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: K22: Example for LPUART that can work in VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1432047#M62714</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;See &lt;A href="https://community.nxp.com/message/421247#421247" target="_blank"&gt;https://community.nxp.com/message/421247#421247&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:35:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-Example-for-LPUART-that-can-work-in-VLPS-mode/m-p/1432047#M62714</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2022-03-22T14:35:09Z</dc:date>
    </item>
  </channel>
</rss>

