<?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 FIFO about K40 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461384#M27652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;Hi jeremyzhou,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;Thanks your answer and helpfull shairing. Actually, I sent some data with uart3_D register, but when i want to send using FIFO buffer, it doesnt succeed. my code is following. TCFIFO [TXCOUNT] doesnt count truely, it only count one time but i am sending 8 dataword, so it should be able to count 8. Where is the my fault. Is there any ideas about this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;unsgined int i, error=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;void main(){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uart_INIT(); // no -parity, 8-bit ,4800-baud, transmitter disable, receiver disable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;PFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TXFE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;PFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXFE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;C2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;C2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Loop to fill the entire TxFIFO */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(i=0;i&amp;lt;9;i++){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Write data into the FIFO */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;D&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; = i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Test to make sure TCFIFO is 8 (FIFO full) */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; ( UART3-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TCFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TXCOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; != 8)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error++;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Flush the TxFIFO */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;C&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART-&amp;gt;&lt;/SPAN&gt;FIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TXFLUSH&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Test to make sure TCFIFO is 0 now (FIFO flushed) */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; ( UART3-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TCFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TXCOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; != 0){&amp;nbsp; error++;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Loop to fill the entire TxFIFO with a new data set */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;( i=0x11; i &amp;lt; 0x19; i++){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Write data into the FIFO */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;UART-&amp;gt;D&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Set the &lt;SPAN style="text-decoration: underline;"&gt;Rx&lt;/SPAN&gt; &lt;SPAN style="text-decoration: underline;"&gt;watermark&lt;/SPAN&gt; to 8 so that we can detect when the transmit is complete */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;RWFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXWATER&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Now re-enable the transmitter. This should cause all 8 bytes to transmit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;C2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;Thanks for your interest,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;Ramazan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jan 2016 08:15:33 GMT</pubDate>
    <dc:creator>ramazantoprak</dc:creator>
    <dc:date>2016-01-26T08:15:33Z</dc:date>
    <item>
      <title>UART FIFO about K40</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461382#M27650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question about K40, i want to use FIFO receiver/ transmitter, but i dont know how can i reach insde FIFO data using uart_D register. Is there any example code about that or explanation. And i didnt understand purpose of watermark method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Ramazan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 12:51:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461382#M27650</guid>
      <dc:creator>ramazantoprak</dc:creator>
      <dc:date>2016-01-25T12:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: UART FIFO about K40</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461383#M27651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramazan,&lt;/P&gt;&lt;P&gt;Please check the attachments which are used as validation code, I think it can help you out.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Tue, 26 Jan 2016 04:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461383#M27651</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-01-26T04:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: UART FIFO about K40</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461384#M27652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;Hi jeremyzhou,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;Thanks your answer and helpfull shairing. Actually, I sent some data with uart3_D register, but when i want to send using FIFO buffer, it doesnt succeed. my code is following. TCFIFO [TXCOUNT] doesnt count truely, it only count one time but i am sending 8 dataword, so it should be able to count 8. Where is the my fault. Is there any ideas about this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;unsgined int i, error=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;void main(){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uart_INIT(); // no -parity, 8-bit ,4800-baud, transmitter disable, receiver disable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;PFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TXFE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;PFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXFE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;C2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;C2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Loop to fill the entire TxFIFO */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(i=0;i&amp;lt;9;i++){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Write data into the FIFO */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;D&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; = i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Test to make sure TCFIFO is 8 (FIFO full) */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; ( UART3-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TCFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TXCOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; != 8)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error++;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Flush the TxFIFO */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;C&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART-&amp;gt;&lt;/SPAN&gt;FIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TXFLUSH&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Test to make sure TCFIFO is 0 now (FIFO flushed) */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; ( UART3-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TCFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TXCOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; != 0){&amp;nbsp; error++;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Loop to fill the entire TxFIFO with a new data set */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;( i=0x11; i &amp;lt; 0x19; i++){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Write data into the FIFO */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;UART-&amp;gt;D&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Set the &lt;SPAN style="text-decoration: underline;"&gt;Rx&lt;/SPAN&gt; &lt;SPAN style="text-decoration: underline;"&gt;watermark&lt;/SPAN&gt; to 8 so that we can detect when the transmit is complete */&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;RWFIFO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXWATER&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Now re-enable the transmitter. This should cause all 8 bytes to transmit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;UART3-&amp;gt;&lt;/SPAN&gt;C2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;Thanks for your interest,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;Ramazan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 08:15:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461384#M27652</guid>
      <dc:creator>ramazantoprak</dc:creator>
      <dc:date>2016-01-26T08:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: UART FIFO about K40</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461385#M27653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;6. UART0 and UART1 contains 8-entry transmit and 8-entry receive FIFOs&lt;/P&gt;&lt;P&gt;7. All other UARTs contain a 1-entry transmit and receive FIFOs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw in the datasheet. I used UART3, it has one dataword,for this reason TXCOUNT is counting 1. I missed out it. i will use uart0 for 8 dataword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your halp,&lt;/P&gt;&lt;P&gt;ramazan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 11:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461385#M27653</guid>
      <dc:creator>ramazantoprak</dc:creator>
      <dc:date>2016-01-26T11:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: UART FIFO about K40</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461386#M27654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramazan,&lt;/P&gt;&lt;P&gt;The attachment provides the UART module transmit DMA test function (uart_tdre_dma_test()) and UART module receive DMA test function (uart_rdrf_dma_test()) separately.&lt;/P&gt;&lt;P&gt;And it also support the UART3, I'd like to suggest that you can verify these function one by one to your demo.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Wed, 27 Jan 2016 06:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-FIFO-about-K40/m-p/461386#M27654</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-01-27T06:18:34Z</dc:date>
    </item>
  </channel>
</rss>

