<?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: UART Setup on FRDM-MCXN947 in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2003646#M2062</link>
    <description>&lt;P&gt;Thank you for your answer&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/186731"&gt;@EdwinHz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have the pins installed, I don't have a problem that LPUART doesn't work at all, I have a problem that UART doesn't keep up with the speed of communication on FRO_12M. I am trying to increase the frequency, but I have the feeling that the baudrate is not set correctly, how can I change the divider?&lt;/P&gt;&lt;P&gt;John Adams&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2024 10:31:10 GMT</pubDate>
    <dc:creator>John_Adams</dc:creator>
    <dc:date>2024-11-28T10:31:10Z</dc:date>
    <item>
      <title>UART Setup on FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2003117#M2053</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm trying to reset LPUART to the frequency from FRO_HF (48 MHz) and keep baudrate 230400. Unfortunately I can't get it to work despite setting the CLK for the UART and baudrate. Have I forgotten something? Can I somehow change the divider?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    /* attach FRO HS to FLEXCOMM7 */
    CLOCK_SetClkDiv(kCLOCK_DivFlexcom7Clk, 1u);
    CLOCK_AttachClk(kFRO_HF_DIV_to_FLEXCOMM7);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My LPUART setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    LPUART_GetDefaultConfig(&amp;amp;config);
    config.baudRate_Bps = 230400;
    config.isMsb        = false;
    config.enableTx     = false;
    config.enableRx     = true;

    PRINTF("Frequency: %d\r\n", CLOCK_GetLPFlexCommClkFreq(7u));
    freq = CLOCK_GetLPFlexCommClkFreq(7u);
    LPUART_Init(LPUART7, &amp;amp;config, freq);
    uint32_t divider = ((LPUART7-&amp;gt;BAUD &amp;amp; LPUART_BAUD_SBR_MASK) &amp;gt;&amp;gt; LPUART_BAUD_SBR_SHIFT);

    DisableIRQ(LPUART7_IRQn);
    /* Enable RX interrupt. */
    LPUART_EnableInterrupts(LPUART7, kLPUART_TransmissionCompleteInterruptEnable);
    EnableIRQ(LPUART7_IRQn);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;John Adams&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 20:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2003117#M2053</guid>
      <dc:creator>John_Adams</dc:creator>
      <dc:date>2024-11-27T20:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: UART Setup on FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2003165#M2054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243923"&gt;@John_Adams&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please make sure you are also initializing the appropriate pins on the pin_mux.c file under board folder.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 22:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2003165#M2054</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2024-11-27T22:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: UART Setup on FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2003646#M2062</link>
      <description>&lt;P&gt;Thank you for your answer&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/186731"&gt;@EdwinHz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have the pins installed, I don't have a problem that LPUART doesn't work at all, I have a problem that UART doesn't keep up with the speed of communication on FRO_12M. I am trying to increase the frequency, but I have the feeling that the baudrate is not set correctly, how can I change the divider?&lt;/P&gt;&lt;P&gt;John Adams&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 10:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2003646#M2062</guid>
      <dc:creator>John_Adams</dc:creator>
      <dc:date>2024-11-28T10:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: UART Setup on FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2004484#M2073</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243923"&gt;@John_Adams&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can chance the FC7 divider by using the line you previously mentioned:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;CLOCK_SetClkDiv(kCLOCK_DivFlexcom7Clk, 1u);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;However, this is already at the lowest division possible. increasing the divider will only decrease the frequency. If you wish to increase the FC7 frequency, you can try changing the source clock to another source, like the PLL divided clock (pll_clk_div) using:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;CLOCK_AttachClk(kPLL_DIV_to_FLEXCOMM7);&lt;/LI-CODE&gt;
&lt;P&gt;Just make sure you are enabling this PLL divided clock by using:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;CLOCK_AttachClk(kPLL0_to_PLLCLKDIV);
CLOCK_SetClkDiv(kCLOCK_DivPllClk, 1U);&lt;/LI-CODE&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 22:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2004484#M2073</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2024-11-29T22:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: UART Setup on FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2008309#M2113</link>
      <description>Thank you,&lt;BR /&gt;Also I will have to use LPUART FIFO, can you please advise me how to read sequentially the data from this FIFO queue?&lt;BR /&gt;&lt;BR /&gt;John Adams</description>
      <pubDate>Thu, 05 Dec 2024 15:22:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2008309#M2113</guid>
      <dc:creator>John_Adams</dc:creator>
      <dc:date>2024-12-05T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: UART Setup on FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2008549#M2115</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243923"&gt;@John_Adams&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You could sequentially read the FIFO queue by letting the eDMA automatically handle these reads. Please look at the "lpuart_edma_transfer" example code, as it shows how the eDMA handles the FIFO reads automatically.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 21:36:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2008549#M2115</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2024-12-05T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: UART Setup on FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2009035#M2129</link>
      <description>Thank you Edwin,&lt;BR /&gt;I will look at the example. Just by chance, is there any example that would use FIFO and not use EDMA?&lt;BR /&gt;&lt;BR /&gt;John Adams&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Dec 2024 10:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2009035#M2129</guid>
      <dc:creator>John_Adams</dc:creator>
      <dc:date>2024-12-06T10:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: UART Setup on FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2009359#M2131</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243923"&gt;@John_Adams&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Of course, that would be any of the other LPUART examples that we provide in our SDK:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwinHz_0-1733516758588.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314613iFFA68F47633B33E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwinHz_0-1733516758588.png" alt="EdwinHz_0-1733516758588.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 20:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/UART-Setup-on-FRDM-MCXN947/m-p/2009359#M2131</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2024-12-06T20:26:16Z</dc:date>
    </item>
  </channel>
</rss>

