<?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: S32K144 UART FIFO Example in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972454#M5532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that it can be confusing, however, the RM is correct:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86924i1E69C60454CA6A85/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86925i1FDEE714BBDBF5DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your second question:&lt;/P&gt;&lt;P&gt;The CTRL[MA2IE] actually enable MA2F interrupt. If MA2F is not set the interrupt is not generated.&lt;/P&gt;&lt;P&gt;The section&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: bold;"&gt;51.4.4.2.6 Match On Match Off operation&amp;nbsp;&lt;/SPAN&gt;describes that "&amp;nbsp;The character that matches&lt;BR /&gt; MATCH[MA2] and all following characters are discarded". That is mean the&amp;nbsp;&lt;SPAN&gt;character that matches&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MATCH[MA2]&lt;SPAN&gt;&amp;nbsp;is not placed &lt;/SPAN&gt;&lt;/SPAN&gt;to receive data buffer. If the character is not moved into receive data buffer the MA2F is not set and the interrupt does not occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try a simple test where BAUD[MAEN2] = 0.&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;After that, the&amp;nbsp;character which matches MA2 is moved to the receive data buffer and the MA2F is set&lt;/SPAN&gt;, but the following data will be also moved into the receive data buffer (the data won't be discarded as is described in the&amp;nbsp;"Match On and Match Off" section).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&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>Thu, 13 Jun 2019 10:44:02 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2019-06-13T10:44:02Z</dc:date>
    <item>
      <title>S32K144 UART FIFO Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972451#M5529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone used UART FIFO for S32K144?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPUART2-&amp;gt;CTRL &amp;amp;= (0xC0000); // Disable TE and RE for Setting FIFO&lt;BR /&gt; LPUART2-&amp;gt;FIFO |= 0x000000ff; // Enable TX and RX FIFO for 256 bytes&amp;nbsp;&lt;BR /&gt; LPUART2-&amp;gt;CTRL |= (0xC0000); // Enable TE and RE after for Setting FIFO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this also am receiving only 4 bytes and RX OverFlow is set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if anyone has done these experiments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..!&lt;/P&gt;&lt;P&gt;Harish G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:28:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972451#M5529</guid>
      <dc:creator>harish_g2</dc:creator>
      <dc:date>2019-06-12T07:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 UART FIFO Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972452#M5530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the&amp;nbsp;TXFIFOSIZE and&amp;nbsp;RXFIFOSIZE fields are&amp;nbsp;read-only, the&amp;nbsp;Buffer depth is only 4 datawords for the S32Kxx devices.&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, 12 Jun 2019 13:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972452#M5530</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-06-12T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 UART FIFO Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972453#M5531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. Please release errata sheet, your user manual gives a different impression. However, if it's not possible to use FIFO, I'm okay to use DMA. But I have another question LPUART MATCH can trigger interrupt asper the user manual. we found it's not working either. please confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;The procedure followed for this is given in s32K reference manual section&amp;nbsp;&lt;SPAN class="" style="color: #000000; font-weight: bold;"&gt;51.4.4.2.6 Match On Match Off operation&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;1. Configured UART MATCH Register&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;2. Enabled MATCH Interrupts&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&amp;nbsp; &amp;nbsp; LPUART0-&amp;gt;BAUD &amp;amp;= ~(0xC0080000); // Clearing MAE1 and MAE2 bits for writing MATCH registers&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LPUART0-&amp;gt;MATCH = 0x00320031; // Match1: '1' and Match2: '2'&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&amp;nbsp; &amp;nbsp; LPUART0-&amp;gt;BAUD |= 0xC0080000; // Setting MAE1, MAE2 Bits and BAUDCFG 10 - Match ON OFF operation&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&amp;nbsp; &amp;nbsp; LPUART0-&amp;gt;CTRL |=&amp;nbsp;LPUART_INT_MATCH_ADDR_ONE; // Enable MATCH 1 Interrupt&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&amp;nbsp; &amp;nbsp; LPUART0-&amp;gt;CTRL |=&amp;nbsp;LPUART_INT_MATCH_ADDR_TWO; // Enable MATCH 2 interrupt&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Our observation - &lt;STRONG&gt;We are getting Interrupt for MATCH1 only and no&amp;nbsp;interrupt triggered for MATCH2&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Please clarify..!&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Regards,&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Harish&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 13:34:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972453#M5531</guid>
      <dc:creator>harish_g2</dc:creator>
      <dc:date>2019-06-12T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 UART FIFO Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972454#M5532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that it can be confusing, however, the RM is correct:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86924i1E69C60454CA6A85/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86925i1FDEE714BBDBF5DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your second question:&lt;/P&gt;&lt;P&gt;The CTRL[MA2IE] actually enable MA2F interrupt. If MA2F is not set the interrupt is not generated.&lt;/P&gt;&lt;P&gt;The section&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: bold;"&gt;51.4.4.2.6 Match On Match Off operation&amp;nbsp;&lt;/SPAN&gt;describes that "&amp;nbsp;The character that matches&lt;BR /&gt; MATCH[MA2] and all following characters are discarded". That is mean the&amp;nbsp;&lt;SPAN&gt;character that matches&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MATCH[MA2]&lt;SPAN&gt;&amp;nbsp;is not placed &lt;/SPAN&gt;&lt;/SPAN&gt;to receive data buffer. If the character is not moved into receive data buffer the MA2F is not set and the interrupt does not occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try a simple test where BAUD[MAEN2] = 0.&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;After that, the&amp;nbsp;character which matches MA2 is moved to the receive data buffer and the MA2F is set&lt;/SPAN&gt;, but the following data will be also moved into the receive data buffer (the data won't be discarded as is described in the&amp;nbsp;"Match On and Match Off" section).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&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>Thu, 13 Jun 2019 10:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972454#M5532</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-06-13T10:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 UART FIFO Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972455#M5533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the detailed info. We will do some experiment on this and get back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have few doubts on HW Flow Control for UART in S32K144.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are configuring MODIR register to 0x9 // TXCTSE bit 1 and RXRTSE=1 and later we are&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;not receiving any data from the modem, we don't know that transmitted data received by modem or not also.&lt;/P&gt;&lt;P&gt;And we wanted to know that what are bits to be configured for Full Modem support in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;MODIR&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;register (RTS and CTS lines are interconnected b/w microcontroller and modem).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know what are bits to be configured in &lt;STRONG&gt;MODIR&lt;/STRONG&gt; register so that &lt;STRONG&gt;RX Overrun Interrupt&lt;/STRONG&gt; should not occur even if don't read DATA register for some time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2019 14:41:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972455#M5533</guid>
      <dc:creator>harish_g2</dc:creator>
      <dc:date>2019-06-16T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 UART FIFO Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972456#M5534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very sorry for the delay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have an RX overrun let's check first your LPUART settings. What is your baudrate, clock settings?&lt;/P&gt;&lt;P&gt;Regarding hardware flow control, could you please share the screen from oscilloscope/analyzer where can be seen the RTS, CTS, Rx, Tx?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&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>Mon, 24 Jun 2019 06:19:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-UART-FIFO-Example/m-p/972456#M5534</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-06-24T06:19:48Z</dc:date>
    </item>
  </channel>
</rss>

