<?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>LPC Microcontrollers中的主题 USART interrupt exampls</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-exampls/m-p/950166#M37749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Recently I‘m writing the code for USART in interrupt mode，and I was refer to the examples of the SDK.But I can't find the Timing and Control aspect of the code。In other words， when send the last words to the FIFO，or other upper layer interrupt to react，how&amp;nbsp; much can I set the hold time to wait.&lt;/P&gt;&lt;P&gt;the second question：&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/88839i99F73405348C9261/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;what the differences with this folders，and please told me if I want to write my code about USART with FIFO interrupt，which one can I refer to。&lt;/P&gt;&lt;P&gt;My MCU is LPC55S69，and my board is&amp;nbsp;&lt;SPAN&gt;LPC55S69-EVK。&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2019 07:48:27 GMT</pubDate>
    <dc:creator>zhangeh10594</dc:creator>
    <dc:date>2019-08-21T07:48:27Z</dc:date>
    <item>
      <title>USART interrupt exampls</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-exampls/m-p/950166#M37749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Recently I‘m writing the code for USART in interrupt mode，and I was refer to the examples of the SDK.But I can't find the Timing and Control aspect of the code。In other words， when send the last words to the FIFO，or other upper layer interrupt to react，how&amp;nbsp; much can I set the hold time to wait.&lt;/P&gt;&lt;P&gt;the second question：&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/88839i99F73405348C9261/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;what the differences with this folders，and please told me if I want to write my code about USART with FIFO interrupt，which one can I refer to。&lt;/P&gt;&lt;P&gt;My MCU is LPC55S69，and my board is&amp;nbsp;&lt;SPAN&gt;LPC55S69-EVK。&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 07:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-exampls/m-p/950166#M37749</guid>
      <dc:creator>zhangeh10594</dc:creator>
      <dc:date>2019-08-21T07:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: USART interrupt exampls</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-exampls/m-p/950167#M37750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;The differences in each folder are explained in the readme.txt of each example. You can find this document under the folder "doc" of each example. However I will give brief description of three principal ones.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;The DMA_Transfer echoes the data sent every 8 characters. That means that it will wait until the 8 character is written to send the complete 8 characters back. In addition this example sends data using the DMA module. It is a non-blocking function, which returns right away.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;The interrupt example will send back all the characters that are sent by the PC via UART. So essentially when an interrupt is triggered, the data is saved in a buffer. However in the main function there is a while loop which is checking the buffer, if there is data it sends it out.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;The polling example is similar to the interrupt, except it is reading and writing in a cycle. The read function reads the RX register using a blocking method. It polls the RX register, waits for the RX register to be full or for the RX FIFO to have data and then read data from the RX register. The write function also uses a blocking method to write to the TX register. It&amp;nbsp; polls the TX register, waits for it to be empty or&amp;nbsp; for the TX FIFO to have room and writes data to the TX buffer.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;From your description in your question, I believe you are referring to hardware flow control. Hardware flow control allows you to control when data can be sent or received with a sort of handshake. Basically on one side you have an RTS(Ready to send) signal which informs that they have data to send out. On the other side you have CTS(Clear to send) signal, and this informs that they are ready to receive. This way you have more control of the USART communication. You can find more information regarding this in &lt;SPAN style="color: #3366ff;"&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/UM11126.pdf" style="color: #3366ff;"&gt;Chapter 34&lt;/A&gt;&lt;/SPAN&gt; of the reference manual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;Please let me know if&amp;nbsp;this answers your questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;Have a great day!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;Sabina&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 21:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-interrupt-exampls/m-p/950167#M37750</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-08-21T21:20:23Z</dc:date>
    </item>
  </channel>
</rss>

