<?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: LPC4330 UARTbaudrate  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UARTbaudrate/m-p/656404#M26079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The equation is correct as is (and wrong with your change). DLM and DLL are 8 bit quantities, so to get the 16 bit&lt;/P&gt;&lt;P&gt;divisor: 256 * (most significant byte) + (least significant byte) [Computer Science 101 Duh]&lt;/P&gt;&lt;P&gt;The factor of 16 is built in to the equation (the 16 in the divisor part) so go for 9600, 19200 etc. as one might expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 22:05:06 GMT</pubDate>
    <dc:creator>mikesimmonds</dc:creator>
    <dc:date>2016-09-27T22:05:06Z</dc:date>
    <item>
      <title>LPC4330 UARTbaudrate</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UARTbaudrate/m-p/656403#M26078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Page 1134 of the User Manual gives the equation for the UARTbaudrate. Section 40.6.3 on page 1123 of the User Manual states that :”… the baud rate clock, which must be 16x the desired baud rate”. Does this mean that the UARTbaudrate equation on page 1134 must generate a baud rate that is 16x the desired baud rate?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;The following UARTbaudrate equation is copied from page 1134 of the User Manual:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;UARTbaudrate = PCLK / (16*(256*DLM+DLL)*(1+DivAddVal/MulVal)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Is the above equation correct or should the equation be (note added parentheses around (DLM + DLL)):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;UARTbaudrate = PCLK / (16*(256*(DLM+DLL))*(1+DivAddVal/MulVal))?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 10:51:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UARTbaudrate/m-p/656403#M26078</guid>
      <dc:creator>tomsaluzzo</dc:creator>
      <dc:date>2016-09-27T10:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4330 UARTbaudrate</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UARTbaudrate/m-p/656404#M26079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The equation is correct as is (and wrong with your change). DLM and DLL are 8 bit quantities, so to get the 16 bit&lt;/P&gt;&lt;P&gt;divisor: 256 * (most significant byte) + (least significant byte) [Computer Science 101 Duh]&lt;/P&gt;&lt;P&gt;The factor of 16 is built in to the equation (the 16 in the divisor part) so go for 9600, 19200 etc. as one might expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 22:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UARTbaudrate/m-p/656404#M26079</guid>
      <dc:creator>mikesimmonds</dc:creator>
      <dc:date>2016-09-27T22:05:06Z</dc:date>
    </item>
  </channel>
</rss>

