<?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: LPC11E68 USART3 baud rate in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E68-USART3-baud-rate/m-p/721932#M29175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="309326" data-username="christophernocker" href="https://community.nxp.com/people/christophernocker"&gt;Christopher Nocker&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;To provide the fastest possible support, I've highly recommend you to refer to the periph_uart_rb demo for details.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24930i1D3A0BDCA35C65F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;LPCOpen library:&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX"&gt;LPCOpen Software for LPC11XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;P&gt;Ping&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2017 02:19:04 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2017-12-15T02:19:04Z</dc:date>
    <item>
      <title>LPC11E68 USART3 baud rate</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E68-USART3-baud-rate/m-p/721931#M29174</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;I am using the LPC11E68 and am trying to configure USART3 to have a particular baud rate (115200).&amp;nbsp; I believe I have the USART working as required except for the baud rate.&amp;nbsp; I've read and re-read and the re-read (repeating many times) the user manual and cannot figure out what I'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user manual has the following formulas:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U_PCLK = FRGCLKDIV/(1+(MULT/DIV))&lt;/P&gt;&lt;P&gt;baud rate = U_PCLK/(16 x BRGVAL)&lt;/P&gt;&lt;P&gt;and substituting you get:&lt;BR /&gt;baud rate = (FRGCLKDIV/(1+(MULT/DIV)))/(16 x BRGVAL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set the system clock to be 36MHz, and the DIV value must be set to 0xFF.&amp;nbsp; I believe I have found good values for MULT and BRGVAL so I have come up with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;baud rate = ((36000000/5)/(1+(244/256)))/(16 x 2) = 115200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am configuring the registers as follows:&lt;/P&gt;&lt;P&gt;LPC_SYSCON-&amp;gt;FRGCLKDIV = 5&lt;BR /&gt; LPC_SYSCON-&amp;gt;UARTFRGDIV = 0xFF&lt;BR /&gt; LPC_SYSCON-&amp;gt;UARTFRGMULT = 244&lt;/P&gt;&lt;P&gt;LPC_USART3-&amp;gt;BRG =&amp;nbsp;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a scope to measure the output of the USART pins, the baud rate I actually get is 225000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly this value of 225000 is the equivalent of setting the MULT value to be 0.&amp;nbsp; I have tried randomly changing the MULT value from the min and max values and it has no effect on the baud rate of the USART.&amp;nbsp; Changing the BRGVAL does effect the baud rate of the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently thinking that the micro has a bug in it where it always assumes a MULT value of 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who can offer some advice/suggestions on what I'm missing to be able to set the baud rate as required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 05:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E68-USART3-baud-rate/m-p/721931#M29174</guid>
      <dc:creator>Nocker</dc:creator>
      <dc:date>2017-12-14T05:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11E68 USART3 baud rate</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E68-USART3-baud-rate/m-p/721932#M29175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="309326" data-username="christophernocker" href="https://community.nxp.com/people/christophernocker"&gt;Christopher Nocker&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;To provide the fastest possible support, I've highly recommend you to refer to the periph_uart_rb demo for details.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24930i1D3A0BDCA35C65F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;LPCOpen library:&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX"&gt;LPCOpen Software for LPC11XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;P&gt;Ping&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 02:19:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E68-USART3-baud-rate/m-p/721932#M29175</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-12-15T02:19:04Z</dc:date>
    </item>
  </channel>
</rss>

