<?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>i.MX RT Crossover MCUsのトピックRe: RT1050 - LPUART RXWATER documentation error</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892381#M2716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Honestly, your reply doesn't make any sense to me.&amp;nbsp; A FIFO is a hardware buffer, nothing more.&amp;nbsp; It allows the UART receiver to store more than 1 byte/word of data before an overflow occurs, and safeguards against the condition where the CPU may be busy servicing other higher-priority interrupts and cannot grab the first character before the second character arrives.&amp;nbsp; Yes, if one allows the FIFO to fill up before servicing the interrupt, you do achieve lower ISR overhead.&amp;nbsp; But in the types of applications I deal with (e.g. Modbus master/slave), I cannot think of any case where I would &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; want to be notified immediately when a single character arrives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My assertion still stands: the statement in the Reference Manual that RXWATER "must be greater than 0" for "proper operation" is &lt;SPAN style="text-decoration: underline;"&gt;factually incorrect&lt;/SPAN&gt;.&amp;nbsp; I have the FIFO enabled and RXWATER set to zero, and the UART operates properly for my application.&amp;nbsp; Disabling the FIFO is pointless; it simply increases the (admittedly small) probability that the UART might drop a character if the CPU is busy in other interrupts or critical sections while high-bitrate data is arriving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I've made my case.&amp;nbsp; You can choose to fix the Reference Manual if you want.&amp;nbsp; Have a good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2019 19:13:22 GMT</pubDate>
    <dc:creator>dmarks_ls</dc:creator>
    <dc:date>2019-05-20T19:13:22Z</dc:date>
    <item>
      <title>RT1050 - LPUART RXWATER documentation error</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892379#M2714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just fixed a bug in my custom LPUART driver, which was introduced only because there is a false statement in the RT1050 reference manual (rev. 2, 11/2018).&amp;nbsp; On page 2714, it states (emphasis added):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;RXWATER -- Receive Watermark&lt;BR /&gt;When the number of datawords in the receive FIFO/buffer is greater than the value in this register field,&lt;BR /&gt;an interrupt or a DMA request is generated. For proper operation, the value in RXWATER must be set to&lt;BR /&gt;be less than the receive FIFO/buffer size as indicated by FIFO[RXFIFOSIZE] and FIFO[RXFE] &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;and must&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;be greater than 0&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last part of that statement is simply false.&amp;nbsp; If RXWATER is greater than zero (say, N), then my LPUART ISR will not trigger until N+1 characters have been received.&amp;nbsp; Per the manual, I had set RXWATER to 1; this manifested as a bug of the FIFO always retaining the last character received, and only delivering prior characters to my RX stream buffer.&amp;nbsp; I set RXWATER back to zero, and now the driver does exactly what I expect it to, i.e. generate an interrupt on the first character received.&amp;nbsp; I certainly consider this "proper operation".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The underline/bold text above should be removed from the documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 18:59:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892379#M2714</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2019-05-13T18:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: RT1050 - LPUART RXWATER documentation error</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892380#M2715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Rx FIFO is enabled&amp;nbsp;(FIFO[RXFE] = 1) and RXWATER = 0, then an interrupt/dma request would be triggered when receiving one dataword. But this is like having a FIFO with depth = 1. It is not how the RXWATER functionality is intended to be used. In such case, the Rx FIFO should be disabled to get an interrupt/dma request with every character received.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 21:25:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892380#M2715</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-05-14T21:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: RT1050 - LPUART RXWATER documentation error</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892381#M2716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Honestly, your reply doesn't make any sense to me.&amp;nbsp; A FIFO is a hardware buffer, nothing more.&amp;nbsp; It allows the UART receiver to store more than 1 byte/word of data before an overflow occurs, and safeguards against the condition where the CPU may be busy servicing other higher-priority interrupts and cannot grab the first character before the second character arrives.&amp;nbsp; Yes, if one allows the FIFO to fill up before servicing the interrupt, you do achieve lower ISR overhead.&amp;nbsp; But in the types of applications I deal with (e.g. Modbus master/slave), I cannot think of any case where I would &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; want to be notified immediately when a single character arrives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My assertion still stands: the statement in the Reference Manual that RXWATER "must be greater than 0" for "proper operation" is &lt;SPAN style="text-decoration: underline;"&gt;factually incorrect&lt;/SPAN&gt;.&amp;nbsp; I have the FIFO enabled and RXWATER set to zero, and the UART operates properly for my application.&amp;nbsp; Disabling the FIFO is pointless; it simply increases the (admittedly small) probability that the UART might drop a character if the CPU is busy in other interrupts or critical sections while high-bitrate data is arriving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I've made my case.&amp;nbsp; You can choose to fix the Reference Manual if you want.&amp;nbsp; Have a good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 19:13:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892381#M2716</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2019-05-20T19:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: RT1050 - LPUART RXWATER documentation error</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892382#M2717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. I will pass this information to the documentation team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 15:21:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892382#M2717</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-05-22T15:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: RT1050 - LPUART RXWATER documentation error</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892383#M2718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just got the confirmation from the documentation team that this statement is wrong and it will be fixed in future releases of the RM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your feedback!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 16:22:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-LPUART-RXWATER-documentation-error/m-p/892383#M2718</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-05-24T16:22:48Z</dc:date>
    </item>
  </channel>
</rss>

