<?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 LPC2138/01 Fractional Baud Rates Not Working in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2138-01-Fractional-Baud-Rates-Not-Working/m-p/1304241#M45792</link>
    <description>&lt;P&gt;Hello NXP,&lt;/P&gt;&lt;P&gt;I can't seem to get the UART0 fractional baud rate generator to work using LPC2138.&amp;nbsp; Essentially the data that transmits out UART0 has a baud rate as though U0FDR remains on its default settings.&lt;/P&gt;&lt;DIV&gt;&lt;FONT color="#0000ff"&gt;U0LCR = 0x83; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* DLAB=1 temporarily to access baud rate divisor latches. */&lt;BR /&gt;U0DLM = 0;&lt;BR /&gt;U0DLL = 4;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* UART0 baud 115200 with 12.288 MHz clock, no PLL, PCLK divides by one. */&lt;BR /&gt;U0LCR = 0x03; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* DLAB=0, eight data bits, one stop bit, no parity. */&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000ff"&gt;U0FDR = 0x32;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With these settings it ends up giving me a baud rate of 192000 instead of the desired 115200.&amp;nbsp; The higher baud rate is what would be provided when the fractional portion is disabled, with all else left the same...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The LPC2138 is the /01 variant, which is supposed to accommodate the fractional baud rates.&amp;nbsp; Any idea what is wrong?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MikeN&lt;/DIV&gt;</description>
    <pubDate>Wed, 07 Jul 2021 20:38:53 GMT</pubDate>
    <dc:creator>mikenn</dc:creator>
    <dc:date>2021-07-07T20:38:53Z</dc:date>
    <item>
      <title>LPC2138/01 Fractional Baud Rates Not Working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2138-01-Fractional-Baud-Rates-Not-Working/m-p/1304241#M45792</link>
      <description>&lt;P&gt;Hello NXP,&lt;/P&gt;&lt;P&gt;I can't seem to get the UART0 fractional baud rate generator to work using LPC2138.&amp;nbsp; Essentially the data that transmits out UART0 has a baud rate as though U0FDR remains on its default settings.&lt;/P&gt;&lt;DIV&gt;&lt;FONT color="#0000ff"&gt;U0LCR = 0x83; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* DLAB=1 temporarily to access baud rate divisor latches. */&lt;BR /&gt;U0DLM = 0;&lt;BR /&gt;U0DLL = 4;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* UART0 baud 115200 with 12.288 MHz clock, no PLL, PCLK divides by one. */&lt;BR /&gt;U0LCR = 0x03; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* DLAB=0, eight data bits, one stop bit, no parity. */&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000ff"&gt;U0FDR = 0x32;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With these settings it ends up giving me a baud rate of 192000 instead of the desired 115200.&amp;nbsp; The higher baud rate is what would be provided when the fractional portion is disabled, with all else left the same...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The LPC2138 is the /01 variant, which is supposed to accommodate the fractional baud rates.&amp;nbsp; Any idea what is wrong?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MikeN&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Jul 2021 20:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2138-01-Fractional-Baud-Rates-Not-Working/m-p/1304241#M45792</guid>
      <dc:creator>mikenn</dc:creator>
      <dc:date>2021-07-07T20:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2138/01 Fractional Baud Rates Not Working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2138-01-Fractional-Baud-Rates-Not-Working/m-p/1317568#M46052</link>
      <description>&lt;P&gt;What's up NXP,&lt;/P&gt;&lt;P&gt;It turns out this was a bonafide compiler problem.&amp;nbsp; IAR IDE &lt;SPAN&gt;v9.10.2&lt;/SPAN&gt; or older has this bug.&amp;nbsp; They are working on a fix in the next release.&lt;/P&gt;&lt;P&gt;MikeN&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 21:52:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2138-01-Fractional-Baud-Rates-Not-Working/m-p/1317568#M46052</guid>
      <dc:creator>mikenn</dc:creator>
      <dc:date>2021-08-03T21:52:24Z</dc:date>
    </item>
  </channel>
</rss>

