<?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 usart dynamic length in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/usart-dynamic-length/m-p/1662800#M52844</link>
    <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;i am using a lpc54so18 nxp controller i want usart data transmission with dynamic length how achieve this please help me to solve this and thank you&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 17:09:00 GMT</pubDate>
    <dc:creator>sachinn434</dc:creator>
    <dc:date>2023-06-02T17:09:00Z</dc:date>
    <item>
      <title>usart dynamic length</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/usart-dynamic-length/m-p/1662800#M52844</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;i am using a lpc54so18 nxp controller i want usart data transmission with dynamic length how achieve this please help me to solve this and thank you&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 17:09:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/usart-dynamic-length/m-p/1662800#M52844</guid>
      <dc:creator>sachinn434</dc:creator>
      <dc:date>2023-06-02T17:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: usart dynamic length</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/usart-dynamic-length/m-p/1663061#M52849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;For your current software architecture, pls refer to the example in SDK package:&lt;/P&gt;
&lt;P&gt;......\LPC_SDK_MCUExpresso\SDK_2_12_0_LPCXpresso54S018 (1)\boards\lpcxpresso54s018\driver_examples\usart\interrupt_transfer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The interrupt transfer example uses interrupt mechanism, for each character, it uses interrupt mode to transfer. In the ISR, the code will check if the predefined size of characters have been transferred, if the predefined size of characters have been completed, the callback function is called, you can write the callback function, set a flag or whatever so that the main can poll the flag to know if the transfer is over or not. But you have to call USART_TransferCreateHandle(DEMO_USART, &amp;amp;g_uartHandle, USART_UserCallback, NULL); so that you can install the callback function.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 01:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/usart-dynamic-length/m-p/1663061#M52849</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-06-05T01:23:42Z</dc:date>
    </item>
  </channel>
</rss>

