<?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: MK70FN1M0VMJ12 UART FIFO implementation in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547356#M33372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Rx FIFO implementation, you can read data from UARTx_D register as it is made in normal implementation (no FIFO feature enabled). Difference between no FIFO and FIFO implementation is the times you need to read UARTx_D register and when RDRF is set. For example, imagine that you set Rx FIFO's watermark to 6 (Remember that both UART0 and UART1 have 8-datawords FIFOs), RDRF flag will be set onlye when 6 or more data are received, once these 6 (or more) bytes are received, RDRF will be set and you will need to get these data from UARTx_D register "UARTx_RCFIFO" times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you can find a basic example for Rx FIFO implementation, basically, it enables UART0's Rx FIFO feature, sets watermark to FIFO_SIZE/2 (4) and enables Receiver's interrupt. When 4 or more bytes are received, these data is taken from Rx FIFO and they are stored in internal buffer, then, they will be sent back to terminal. It is a bareboard project created for FRDM-K64F board (in KDS), however, same principle applies for K70's MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2016 21:21:23 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2016-08-25T21:21:23Z</dc:date>
    <item>
      <title>MK70FN1M0VMJ12 UART FIFO implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547355#M33371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;We are working on MK70FN1M0VMJ12 micro controller and need to implement FIFO in UART0 and UART1.&lt;/P&gt;&lt;P&gt;Can you please clarify the following information:&lt;/P&gt;&lt;P&gt;1) How to read Receive Buffer data when FIFO is enabled in UART module and watermark level is set?&lt;/P&gt;&lt;P&gt;2) Do you have any sample code or document explaining UART FIFO usage?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 12:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547355#M33371</guid>
      <dc:creator>praveenkumari</dc:creator>
      <dc:date>2016-08-22T12:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: MK70FN1M0VMJ12 UART FIFO implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547356#M33372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Rx FIFO implementation, you can read data from UARTx_D register as it is made in normal implementation (no FIFO feature enabled). Difference between no FIFO and FIFO implementation is the times you need to read UARTx_D register and when RDRF is set. For example, imagine that you set Rx FIFO's watermark to 6 (Remember that both UART0 and UART1 have 8-datawords FIFOs), RDRF flag will be set onlye when 6 or more data are received, once these 6 (or more) bytes are received, RDRF will be set and you will need to get these data from UARTx_D register "UARTx_RCFIFO" times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you can find a basic example for Rx FIFO implementation, basically, it enables UART0's Rx FIFO feature, sets watermark to FIFO_SIZE/2 (4) and enables Receiver's interrupt. When 4 or more bytes are received, these data is taken from Rx FIFO and they are stored in internal buffer, then, they will be sent back to terminal. It is a bareboard project created for FRDM-K64F board (in KDS), however, same principle applies for K70's MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 21:21:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547356#M33372</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-08-25T21:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: MK70FN1M0VMJ12 UART FIFO implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547357#M33373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you clarify the maximum size of UART0 and UART1 Transmit, Receive FIFO size in bytes for &lt;/P&gt;&lt;P&gt;MK70FN1M0VMJ12.&lt;/P&gt;&lt;P&gt;Because you said it is having 8-datawords, in Reference Manual UART configuration information says 8 entries, in UART0_PFIFO register says configurable up to 128-datawords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What entry means? Databyte or Dataword?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This confusion arises because in UART configuration information,&lt;/P&gt;&lt;P&gt;UART0 and UART1 contains 8-entry transmit and 8-entry receive FIFOs&lt;/P&gt;&lt;P&gt;All other UARTs contain a 1-entry transmit and receive FIFOs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All other UARTs are only able to receive 1 Byte. Is that right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 07:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547357#M33373</guid>
      <dc:creator>praveenkumari</dc:creator>
      <dc:date>2016-08-26T07:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: MK70FN1M0VMJ12 UART FIFO implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547358#M33374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every entry is a 8-bit location (indeed it is the size for UARTx_D register), so, for UART0 and UART1, you have 8 bytes in the FIFO and all other UART are 1-byte entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547358#M33374</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-08-26T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: MK70FN1M0VMJ12 UART FIFO implementation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547359#M33375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"...UART0_PFIFO register says configurable up to 128-datawords."&lt;/P&gt;&lt;P&gt;Like all other elements of Kinetis reference manuals, the peripheral description outlines the 'maximum potential design capacity'.&amp;nbsp; Chapter 3 of each manual defines the characteristics selected to instantiate that peripheral within any particular silicon, and for this part UART0/1 have 8 bytes/entries, the others 1 (simple double-buffered function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'dataword' terminology for the FIFO comes about because the 'FIFO logic' includes not ONLY the '8 bits of UARTx_D', but also other associated bits, including the potential ninth bit (R8, read in register C3) and NOISY and PARITYE status bits (UARTx_ED) to go with the databyte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other design-note:&amp;nbsp; If you are going to use these expanded FIFOs and watermark-interrupts, I suggest you will also want to enable an 'idle line interrupt' to prompt your routine to empty the 'last few' (less than watermark, no more coming) from the FIFO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 18:04:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK70FN1M0VMJ12-UART-FIFO-implementation/m-p/547359#M33375</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-08-26T18:04:53Z</dc:date>
    </item>
  </channel>
</rss>

