<?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: uart &amp; waste time in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530286#M1902</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 May 19 07:40:30 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kabriolin&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Actually trying new hardware with a LPC1374 and using USART, i've just seen something:&lt;BR /&gt;&lt;BR /&gt;I'm sending many datas through an RS485 line, and use this code for USART sending (testing code):&lt;BR /&gt;&lt;BR /&gt;LPC_USART-&amp;gt;THR = Data;&lt;BR /&gt;while ( !(LPC_USART-&amp;gt;LSR &amp;amp; LSR_THRE) );&lt;BR /&gt;LPC_USART-&amp;gt;THR = Data;&lt;BR /&gt;while ( !(LPC_USART-&amp;gt;LSR &amp;amp; LSR_THRE) );&lt;BR /&gt;&lt;BR /&gt;On the scope, (when Data = 0xFF) the low level time on the Tx line, is something like 1us (@ 1Mbaud) that's ok, but time between two data is around 8us!!!!&lt;BR /&gt;&lt;BR /&gt;Is it something i'm doing wrong, is it any way to reduce this time? Or is it normal?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what a LPC1374 is, but if it has a FIFO it's faster to use / fill it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See #4 of &lt;/SPAN&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=2231&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:16:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:16:40Z</dc:date>
    <item>
      <title>uart &amp; waste time</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530285#M1901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kabriolin on Sun May 19 07:15:31 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually trying new hardware with a LPC1374 and using USART, i've just seen something:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sending many datas through an RS485 line, and use this code for USART sending (testing code):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = Data;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while ( !(LPC_USART-&amp;gt;LSR &amp;amp; LSR_THRE) );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = Data;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while ( !(LPC_USART-&amp;gt;LSR &amp;amp; LSR_THRE) );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the scope, (when Data = 0xFF) the low level time on the Tx line, is something like 1us (@ 1Mbaud) that's ok, but time between two data is around 8us!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it something i'm doing wrong, is it any way to reduce this time? Or is it normal?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kabriolin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:16:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530285#M1901</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: uart &amp; waste time</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530286#M1902</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 May 19 07:40:30 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kabriolin&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Actually trying new hardware with a LPC1374 and using USART, i've just seen something:&lt;BR /&gt;&lt;BR /&gt;I'm sending many datas through an RS485 line, and use this code for USART sending (testing code):&lt;BR /&gt;&lt;BR /&gt;LPC_USART-&amp;gt;THR = Data;&lt;BR /&gt;while ( !(LPC_USART-&amp;gt;LSR &amp;amp; LSR_THRE) );&lt;BR /&gt;LPC_USART-&amp;gt;THR = Data;&lt;BR /&gt;while ( !(LPC_USART-&amp;gt;LSR &amp;amp; LSR_THRE) );&lt;BR /&gt;&lt;BR /&gt;On the scope, (when Data = 0xFF) the low level time on the Tx line, is something like 1us (@ 1Mbaud) that's ok, but time between two data is around 8us!!!!&lt;BR /&gt;&lt;BR /&gt;Is it something i'm doing wrong, is it any way to reduce this time? Or is it normal?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what a LPC1374 is, but if it has a FIFO it's faster to use / fill it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See #4 of &lt;/SPAN&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=2231&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:16:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530286#M1902</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: uart &amp; waste time</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530287#M1903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kabriolin on Sun May 19 07:58:16 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, it's LPC1347....:rolleyes: and it has a Tx FIFO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But always 8us between 2 bytes...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:16:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530287#M1903</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: uart &amp; waste time</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530288#M1904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kabriolin on Mon May 20 00:48:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;New test,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GPIOSetBitValue(Debug_1_port, Debug_1_pin, 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART-&amp;gt;THR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GPIOSetBitValue(Debug_1_port, Debug_1_pin, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The debug pin is high during 2.2uS, that's ok, but it takes 82us between the first byte and the end of the last one....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of waiting between each byte, i have to wait for the last one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also changed the baud rate (divided by 4), one byte transfert time 4us, and time between 2 bytes is 32us, but the fifo filling's time is always 2.2us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So why is it waiting the equivalent time of 8 byte before sending the next one? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the final apps, i'll have 5 or 6 uC echanging a lot of data, i can't wait a so long time. I will have a look on soft uart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:16:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530288#M1904</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: uart &amp; waste time</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530289#M1905</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 Mon May 20 02:25:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kabriolin&lt;/STRONG&gt;&lt;BR /&gt;If you have any idea.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what we are talking about&amp;nbsp; :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without seeing your code (especially UART setup) I can't follow you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My good old 1343 is transmitting an 8N1 byte (a little bit faster than 1Mbit/s = 0.89us/bit) in about 9us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So there are 90us needed for 10 bytes (if FIFO is empty).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's what I'm seeing while scoping TxD :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which times are you expecting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:16:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530289#M1905</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: uart &amp; waste time</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530290#M1906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kabriolin on Mon May 20 04:48:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, forget everythings i said....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm totally wrong, I confused bit and byte....because I sent 0xFF, the Tx line get high after the start bit, and I took that for an idle time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything is fine. Now I've to wait for the fifo empty flag :(.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:16:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/uart-waste-time/m-p/530290#M1906</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:16:43Z</dc:date>
    </item>
  </channel>
</rss>

