<?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 configuration in S32K</title>
    <link>https://community.nxp.com/t5/S32K/UART-configuration/m-p/717711#M1619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambarish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume when you increment value &lt;EM&gt;i&lt;/EM&gt; and when some character is null, (&lt;EM&gt;i&lt;/EM&gt;+'0') should help.&lt;/P&gt;&lt;P&gt;Could you try this code?&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPUART1_recieve_and_echo_char();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPUART1_transmit_char(i+'0');&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(i == 100) {&amp;nbsp; i = 0; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;BR /&gt;LPUART1_receive_char(); - this function wait for the character and return receive character. If you want to see the receive character you should call LPUART1_recieve_and_echo_char(); - this function transmit the receive char back to the sender, after that you could see your character on the terminal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2018 09:57:41 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2018-02-07T09:57:41Z</dc:date>
    <item>
      <title>UART configuration</title>
      <link>https://community.nxp.com/t5/S32K/UART-configuration/m-p/717710#M1618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried example code of UART given by the NXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to send the data from the controller to PC but not able to receive the data from PC(realTerm tool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached the example code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;char LPUART1_receive_char(void) { /* Function to Receive single Char */&lt;BR /&gt; char recieve;&lt;BR /&gt; while((LPUART1-&amp;gt;STAT &amp;amp; LPUART_STAT_RDRF_MASK)&amp;gt;&amp;gt;LPUART_STAT_RDRF_SHIFT==0);&lt;BR /&gt; /* Wait for received buffer to be full */&lt;BR /&gt; recieve= LPUART1-&amp;gt;DATA; /* Read received data*/&lt;BR /&gt; return recieve;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;always while condition is failed and not able to update the receive data(&lt;SPAN&gt;RDRF bit is always 0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ambarish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 13:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/UART-configuration/m-p/717710#M1618</guid>
      <dc:creator>ambarishhundeka</dc:creator>
      <dc:date>2018-02-05T13:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: UART configuration</title>
      <link>https://community.nxp.com/t5/S32K/UART-configuration/m-p/717711#M1619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambarish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume when you increment value &lt;EM&gt;i&lt;/EM&gt; and when some character is null, (&lt;EM&gt;i&lt;/EM&gt;+'0') should help.&lt;/P&gt;&lt;P&gt;Could you try this code?&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPUART1_recieve_and_echo_char();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPUART1_transmit_char(i+'0');&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(i == 100) {&amp;nbsp; i = 0; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;BR /&gt;LPUART1_receive_char(); - this function wait for the character and return receive character. If you want to see the receive character you should call LPUART1_recieve_and_echo_char(); - this function transmit the receive char back to the sender, after that you could see your character on the terminal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 09:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/UART-configuration/m-p/717711#M1619</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2018-02-07T09:57:41Z</dc:date>
    </item>
  </channel>
</rss>

