<?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>LPC MicrocontrollersのトピックRe: LPC4353 USART3 receive variable number of chars</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4353-USART3-receive-variable-number-of-chars/m-p/624649#M24526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sky sky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, this is a communication question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The universal method is defined a user serial communication protocol, it normally contains: Header byte, lengh byte, data frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Take an example: &lt;SPAN style="color: #ff0000;"&gt;0xA5 0X5A&lt;/SPAN&gt; &lt;SPAN style="color: #339966;"&gt;0X02&lt;/SPAN&gt; 0X01 0X02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;0xA5 0X5A&lt;/SPAN&gt;&amp;nbsp; is the head byte&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #339966;"&gt;0X02&lt;/SPAN&gt;&amp;nbsp; is the data length need to receive&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0X01 0X02 is the detail data.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, as a UART slave, your LPC4353 can receive the data all the time, when it receives 0XA5 0X5A, it means the new frame is beginning,&amp;nbsp; the next byte is the data byte length, after receive the data length byte, the following just need to receive the according length data, other data will be discarded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The above thought is the normal usage, just for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Fri, 04 Nov 2016 08:19:45 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-11-04T08:19:45Z</dc:date>
    <item>
      <title>LPC4353 USART3 receive variable number of chars</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4353-USART3-receive-variable-number-of-chars/m-p/624648#M24525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lpc4353 usart3 used as UART slave,and receive master's frame data-Binary.but Master send the number of data is variable,and also any time and any number.LPC4353 need receive a whole frame,the parse the frame.&lt;/P&gt;&lt;P&gt;So,whethe has a good way to receive the whole frame data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 08:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4353-USART3-receive-variable-number-of-chars/m-p/624648#M24525</guid>
      <dc:creator>skysky</dc:creator>
      <dc:date>2016-11-02T08:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4353 USART3 receive variable number of chars</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4353-USART3-receive-variable-number-of-chars/m-p/624649#M24526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sky sky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, this is a communication question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The universal method is defined a user serial communication protocol, it normally contains: Header byte, lengh byte, data frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Take an example: &lt;SPAN style="color: #ff0000;"&gt;0xA5 0X5A&lt;/SPAN&gt; &lt;SPAN style="color: #339966;"&gt;0X02&lt;/SPAN&gt; 0X01 0X02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;0xA5 0X5A&lt;/SPAN&gt;&amp;nbsp; is the head byte&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #339966;"&gt;0X02&lt;/SPAN&gt;&amp;nbsp; is the data length need to receive&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0X01 0X02 is the detail data.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, as a UART slave, your LPC4353 can receive the data all the time, when it receives 0XA5 0X5A, it means the new frame is beginning,&amp;nbsp; the next byte is the data byte length, after receive the data length byte, the following just need to receive the according length data, other data will be discarded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The above thought is the normal usage, just for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Fri, 04 Nov 2016 08:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4353-USART3-receive-variable-number-of-chars/m-p/624649#M24526</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-11-04T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4353 USART3 receive variable number of chars</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4353-USART3-receive-variable-number-of-chars/m-p/624650#M24527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks your answer.&lt;/P&gt;&lt;P&gt;my intention is that first receive the whole frame into ringbuff.then parse the received frame.&lt;/P&gt;&lt;P&gt;So i need know when the frame has been received completely.&lt;/P&gt;&lt;P&gt;Now i used the USART's BI(Break Interrupt).And the uart Master set the usart BREAK after the frame has been sent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 05:41:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4353-USART3-receive-variable-number-of-chars/m-p/624650#M24527</guid>
      <dc:creator>skysky</dc:creator>
      <dc:date>2016-11-08T05:41:46Z</dc:date>
    </item>
  </channel>
</rss>

