<?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: Different UART speeds in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565274#M17052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 01:03:58 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-19T01:03:58Z</dc:date>
    <item>
      <title>Different UART speeds</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565268#M17046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tarakan on Fri Mar 04 01:54:40 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting different speeds simultaneously for UART ports are clear. Settings 115200, 9600 and 19200bps seamlessly. When setting substandard 100000bps (needs camremote of Sony) it's simultaneous setting speed 115200 unattainable. I use internal oscillator on 12MHz. Any idea how to simultaneously set 100 and 115.2kbps? Thenks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:06:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565268#M17046</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Different UART speeds</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565269#M17047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Fri Mar 04 03:37:17 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Use a 24MHz system clock.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:06:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565269#M17047</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Different UART speeds</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565270#M17048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tarakan on Sat Mar 05 00:20:55 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the tip. I tried 24 and 30 MHz. Current speed 100 and 115.2 kbps not work. Improvement was to speed 9600bps. It was really physically 9600 and no 10000bps&amp;nbsp; such as at a speed MCU 12MHz. (At the current rate 100kbps on the second channel.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Speed is adjusted as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_SetUSARTNBaseClockRate((115200 * 16), true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_UART_SetBaud(LPC_USART0, 115200); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_UART_SetBaud(LPC_USART1, 100000); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_UART_SetBaud(LPC_USART2, 9600); &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565270#M17048</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Different UART speeds</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565271#M17049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Sat Mar 05 04:25:05 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The USART's offer the oversampling ratio OSR as an additional degree of freedom. Default is 16x oversampling, but slightly smaller values are no problem as long as the peer device has a reasonable baud rate accuracy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming a 12 MHz main clock, you get 12M/100k = 120, 12M/115k2 = 104.17, 12M/9k6 = 1250&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;104.17 = 8 * 13 (104, 0.16% error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;120 = 8 * 15 (no error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1250 = 8 * 12 * 13 (1248, 0.16% error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Leave the UART fractional generator disabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UARTCLKDIV = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USART0: OSR = 12, BRG = 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USART1: OSR = 14, BRG = 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USART2: OSR = 12, BRG = 95&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Moving the common factor 8 to UARTCLKDIV may yield slightly lower power consumption.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:06:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565271#M17049</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Different UART speeds</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565272#M17050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Sat Mar 05 05:57:37 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Interesting, the LPC82x supports setting oversampling from 5 to 16 (the LPC81x doesn't).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the OP didn't tell us which one he uses.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:06:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565272#M17050</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Different UART speeds</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565273#M17051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tarakan on Sat Mar 05 08:04:35 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks DF9DQ. Great tip. Another degree of freedom fits. I agree. Oversampling 8 is more than enough.&amp;nbsp; This problem is resolved. Thank you very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565273#M17051</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Different UART speeds</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565274#M17052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:03:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Different-UART-speeds/m-p/565274#M17052</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:03:58Z</dc:date>
    </item>
  </channel>
</rss>

