<?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: Sending Packet by UART on KEAZ64 in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424166#M3463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does that mean that, for the KEA64, the functions to send and receive block data are really only capable of passing one character at a time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which case, the ReceiveBlock can only capture one byte at a time, and can only take 1U as the length parameter?&amp;nbsp; Is that the same for the SendBlock function as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 20:10:40 GMT</pubDate>
    <dc:creator>stevencornett</dc:creator>
    <dc:date>2015-06-29T20:10:40Z</dc:date>
    <item>
      <title>Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424157#M3454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am building an application that requires a response to commands be sent through a UART.&amp;nbsp; I am sending an 11 byte response string at 115200 baud, but it is taking twice as long to transmit than if it was send as one block.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at the UART code, and it appears that the code is sending the data in the block one byte at a time. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to pass the send the information in one packet so that we can get the transmission time to the proper period?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 14:25:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424157#M3454</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-06-23T14:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424158#M3455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Do you want a UART function that send numbers of bytes ?&lt;/P&gt;&lt;P&gt;If yes, which IDE do you use , if you use KDS, you can create e PE project , then utilize the function of&lt;/P&gt;&lt;P&gt;"LDD_TError AS1_SendBlock(LDD_TDeviceData *DeviceDataPtr, LDD_TData *BufferPtr, uint16_t Size)"&lt;/P&gt;&lt;P&gt;the "Size" is the number of bytes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57010i6F652E6C5ADCE69E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(2) "I looked at the UART code" , which code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 06:32:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424158#M3455</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-06-24T06:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424159#M3456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking at the PE generated AsynchroSerial component for UART1.&amp;nbsp; It has a UART_SendBlock method that I called, where the SerialLdd1_SendBlock function is called, and it is sending only one bit at a time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 15:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424159#M3456</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-06-24T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424160#M3457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we know, the UART Data register only have 8 bits, so it sending only one byte at a time .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57592i96B7B57E3CD7F6AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 01:38:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424160#M3457</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-06-25T01:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424161#M3458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds to me like I've made the wrong point.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the routine will write to UART1 Data Register one byte at a time, but it's the transfer rate between writes that is the problem with the routine generated by PE in KDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears to have the effect of creating a delay between character writes such that the packet transfer time is twice as much as expected.&amp;nbsp; Is there example code that uses AS1_SendBlock such that the inter-character spacing is more normal (resulting in a transfer time of 1.05ms instead of &amp;gt; 2ms?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424161#M3458</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-06-25T12:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424162#M3459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed that you are using the Serial_LDD code package.&amp;nbsp; I derived my UART code from the AsynchroSerial package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the SendBlock implementation going to be slower than the one derived from the Serial_LDD?&amp;nbsp; If so, would it then behoove me to refactor my top level to use routines derived from Serial_LDD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:34:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424162#M3459</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-06-25T17:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424163#M3460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steven,&lt;/P&gt;&lt;P&gt;(1) "AS1_SendBlock" and the "AS1_SendBlock" are the same .&lt;/P&gt;&lt;P&gt;(2)Sorry i can not know your problem clearly.&amp;nbsp; Could you pleas tell me how can i repeat your situation ? Especially repeat "resulting in a transfer time of 1.05ms instead of &amp;gt; 2ms?" thank !&lt;/P&gt;&lt;P&gt;About "have the effect of creating a delay between character writes" ,i have checked the code , there have not intended delay, the delay is the necessary configuration .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 08:09:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424163#M3460</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-06-26T08:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424164#M3461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using the SendBlock function in the Serial_LDD component, I loaded the AsynchroSerial UART component and used the UART_SendBlock routine from that component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They may be the same in the prototype level, but the later calls the former.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 12:09:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424164#M3461</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-06-26T12:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424165#M3462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a scope trace showing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="tek0000_05Jun15.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58894i5E6771B76A1CE962/image-size/large?v=v2&amp;amp;px=999" role="button" title="tek0000_05Jun15.png" alt="tek0000_05Jun15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The bottom trace (Channel 2) is the packet put out on the UART TX line.&amp;nbsp; If the byte-to-byte spacing is the way it ought to be, it should take up a little more than one major division of the scope, or 1ms.&amp;nbsp; It's taking up two milliseconds, or two divisions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you run a packet through SendBlock in Serial_LDD, what are you seeing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 12:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424165#M3462</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-06-26T12:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424166#M3463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does that mean that, for the KEA64, the functions to send and receive block data are really only capable of passing one character at a time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which case, the ReceiveBlock can only capture one byte at a time, and can only take 1U as the length parameter?&amp;nbsp; Is that the same for the SendBlock function as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 20:10:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424166#M3463</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-06-29T20:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424167#M3464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The baud rate 115200 meaning UART can transmit 115200 bit every second .&lt;/P&gt;&lt;P&gt;And you can use the "&amp;nbsp; time / bits&amp;nbsp;&amp;nbsp; " , the result is about 115200 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 07:22:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424167#M3464</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-07-01T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424168#M3465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(2)Sorry i can not know your problem clearly.&amp;nbsp; Could you pleas tell me how can i repeat your situation ? Especially repeat "resulting in a transfer time of 1.05ms instead of &amp;gt; 2ms?" thank !&lt;/P&gt;&lt;P&gt;About "have the effect of creating a delay between character writes" ,i have checked the code , there have not intended delay, the delay is the necessary configuration .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which code are you talking about?&amp;nbsp; Are you using an interrupt-based (non-blocking) TX and RX setup with the Serial_LDD routines?&amp;nbsp; I was using the AsynchroSerial library generated by Processor Expert. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have sample code for the earlier, if you created it with Serial_LDD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 18:23:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424168#M3465</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-07-20T18:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Packet by UART on KEAZ64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424169#M3466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When nothing intervenes between the characters, then the transfer time is reasonably close. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the library I was using incorporates a EnterCritical() function just before the transmission of each character.&amp;nbsp; That adds about 109 microseconds per character send; for 11 bytes that adds more than a millisecond to the transfer time.&amp;nbsp; Once I put the EnterCritical and ExitCritical functions outside of the loop, that fixed the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TEK00009.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56078i581DD94EA3F5815B/image-size/large?v=v2&amp;amp;px=999" role="button" title="TEK00009.png" alt="TEK00009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured I should make mention of what the solution finally turned out to be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sending-Packet-by-UART-on-KEAZ64/m-p/424169#M3466</guid>
      <dc:creator>stevencornett</dc:creator>
      <dc:date>2015-08-06T20:27:23Z</dc:date>
    </item>
  </channel>
</rss>

