<?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: LPUART0 baudrate in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPUART0-baudrate/m-p/792046#M48189</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;Please make reference from this post on how to config the baudrate. Although it is for K22, but the proceduce for K82 is same. &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/669194?commentID=669194#comment-669194" title="https://community.nxp.com/message/669194?commentID=669194#comment-669194"&gt;https://community.nxp.com/message/669194&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1012371?commentID=1012371#comment-1012371" title="https://community.nxp.com/message/1012371?commentID=1012371#comment-1012371"&gt;https://community.nxp.com/message/1012371&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2018 08:32:51 GMT</pubDate>
    <dc:creator>miduo</dc:creator>
    <dc:date>2018-07-30T08:32:51Z</dc:date>
    <item>
      <title>LPUART0 baudrate</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPUART0-baudrate/m-p/792045#M48188</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;&lt;/P&gt;&lt;P&gt;I've got problem with setting baudrate highter than 9600.&lt;/P&gt;&lt;P&gt;Microcontroller : K82&lt;/P&gt;&lt;P&gt;Clock is internal fast oscillator 4MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to this :&lt;/P&gt;&lt;P&gt;Baud Rate = LPUART ASYNCH Module Clock / (SBR[12:0] × (OSR+1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i&amp;nbsp;set SBR at 13,&amp;nbsp;and OSR at 31 i get&amp;nbsp;almost &amp;nbsp;9600 and it works just fine but the problem starts when i want any higher baudrate, let's say i will set SBR at 3 and OSR at 31 and i should get something close to 41500 according to the formula but according to oscilloscope i get something close to 18000. It gets even worse when LPUART0 source is FLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any script or software to get as close to standard baudrates or i need to find right numbers(dividers) by myself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i missing? Where's the catch?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 10:05:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPUART0-baudrate/m-p/792045#M48188</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-07-27T10:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART0 baudrate</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPUART0-baudrate/m-p/792046#M48189</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;Please make reference from this post on how to config the baudrate. Although it is for K22, but the proceduce for K82 is same. &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/669194?commentID=669194#comment-669194" title="https://community.nxp.com/message/669194?commentID=669194#comment-669194"&gt;https://community.nxp.com/message/669194&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1012371?commentID=1012371#comment-1012371" title="https://community.nxp.com/message/1012371?commentID=1012371#comment-1012371"&gt;https://community.nxp.com/message/1012371&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 08:32:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPUART0-baudrate/m-p/792046#M48189</guid>
      <dc:creator>miduo</dc:creator>
      <dc:date>2018-07-30T08:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART0 baudrate</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPUART0-baudrate/m-p/792047#M48190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read almost every post about lpuart, config is correct except baudrate and clocking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Baudrate clock/(SBR*(OSR+1))&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;How is&amp;nbsp; 4MHz/(13*(31+1)) = 9615 not equal to: 4Mhz/(26*(15+1) )= 9615, in theory they're equal but both settings gives me 2 different baudrates so it looks like there is strange corelation between OSR and SBR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Edit&lt;/P&gt;&lt;P&gt;I noticed that only 16 and 32 can be set in OSR (15 and 31), any other value results in getting 16/32. In SBR&amp;nbsp;field there is&amp;nbsp; always "1"&amp;nbsp; on third spot from LSB,&amp;nbsp; so&amp;nbsp; if i set 8 result in 12, value of 12 results in 12 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there is no way to set FLL/PPL or IRC48M in SIM_SOPT2, value in the register doesn't want to change or clear, only fast internal oscillator can be set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Knowing these problems i could easily set specific baudrate but achieving 57200 or any higher baud is just impossible when i can't manipulate OSR and SBR freely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noticed that on&amp;nbsp; custom K80 board&amp;nbsp; also on FRDM-K82.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what might be wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 09:57:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPUART0-baudrate/m-p/792047#M48190</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-07-30T09:57:16Z</dc:date>
    </item>
  </channel>
</rss>

