<?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>LPC MicrocontrollersのトピックRe: Strange UART receive behavior</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596225#M22987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Apr 26 12:18:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kaldap&lt;/STRONG&gt;&lt;BR /&gt;Am I missing something (e.g. maximum allowed baud rate for reception or another limits)?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Datasheet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;7.8.1 Features&lt;BR /&gt;• Maximum UART data bit rate of 3.125 Mbit/s.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course that the 50MHz main clock value&amp;nbsp; :) &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:24:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:24:27Z</dc:date>
    <item>
      <title>Strange UART receive behavior</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596224#M22986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kaldap on Sun Apr 26 11:33:10 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've come into a problem with the UART communication on LPC11C24.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UART periph is correctly initialized and got clock from external 11.0592 MHz xtal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the UART is configured for communication at 115200 bauds, everything works like a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem begins when I set up 1843200 bauds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It sends correct data on TXD line and these data are echoed back correctly by counterpart (both checked on logical analyser)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but some gibberish is read from RBR register (even read byte count is not correct).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've rechecked my board and soldering and found no problem. Even the code seems right (it's modified LpcOpen UART example).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And pin muxing is also set right (checked inside debugger). Am I missing something (e.g. maximum allowed baud rate for reception or another limits)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for ideas! I'm starting to think it is chip problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596224#M22986</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strange UART receive behavior</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596225#M22987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Apr 26 12:18:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kaldap&lt;/STRONG&gt;&lt;BR /&gt;Am I missing something (e.g. maximum allowed baud rate for reception or another limits)?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Datasheet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;7.8.1 Features&lt;BR /&gt;• Maximum UART data bit rate of 3.125 Mbit/s.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course that the 50MHz main clock value&amp;nbsp; :) &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596225#M22987</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Strange UART receive behavior</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596226#M22988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kaldap on Sun Apr 26 14:17:26 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Well I did not notice this&amp;nbsp; 0:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I finally got it working...&amp;nbsp; ;-) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The root of all evil is the &lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Important:&lt;/STRONG&gt; If the fractional divider is active (DIVADDVAL &amp;gt; 0) and DLM = 0, the value of&lt;BR /&gt;the DLL register must be 3 or greater.&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt; which cannot be met with the 44.2368MHz but correct frequency can be calculated using the baudrate equation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case the&amp;nbsp; Chip_UART_SetBaudrateFDR uses this invalid calculated value and transmission is working fine but reception is not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I had to double the main clock and set system divisor to 2 to get into 0-50MHz for MCU and use UART DLL=3/DLM=0 without fractional divider.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Btw Chip_UART_SetBaud has also a bug. It does not return baudrate as stated in commentary but baudrate multiplied by 16.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There should be &lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;return clkin / (16 * div);&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mentioning it here, don't know where to report LPCOpen bugs&amp;nbsp; 0:) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596226#M22988</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Strange UART receive behavior</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596227#M22989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Support on Tue Apr 28 11:24:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi kaldap,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We found and fixed the fractional divider bug in LPCOpen, so the next release will have the updated code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for reporting this!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-NXP Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Strange-UART-receive-behavior/m-p/596227#M22989</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:28Z</dc:date>
    </item>
  </channel>
</rss>

