<?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: LPC810 uart_echo help in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560005#M15997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Tue Jun 18 03:50:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi Noah&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I tried that it is working.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Now I want to receive data by interrupt method. Please help me.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you Noah&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;vs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:59:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:59:44Z</dc:date>
    <item>
      <title>LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/559997#M15989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Fri Jun 14 05:22:22 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;span style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;"&amp;gt;I have LPC800 mini board and able to blink led by example code.Now I want to make uart echo example but not able to receive data from terminal.I think I am missing some parameters setup to Receive data from terminal.&amp;lt;/span&amp;gt;&amp;lt;br style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;" /&amp;gt;&amp;lt;br style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;" /&amp;gt;&amp;lt;span style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;"&amp;gt;please guide me or suggest some tutorial to set parameters or registers which are required to Receive data from terminal.&amp;lt;/span&amp;gt;&amp;lt;br style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;" /&amp;gt;&amp;lt;br style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;" /&amp;gt;&amp;lt;br style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;" /&amp;gt;&amp;lt;span style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;"&amp;gt;Regards,&amp;lt;/span&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;span style="color: #555555; font-family: Arial, sans-serif; font-size: 11px; line-height: normal; background-color: #f2f7fb;"&amp;gt;vs&amp;lt;/span&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/559997#M15989</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/559998#M15990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by noahk on Fri Jun 14 17:59:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi vs,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Here's an off-the-cuff simple example of a loopback for 8 bit, no parity, 1 stop bit:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;CFG = (1 &amp;amp;lt;&amp;amp;lt; 2) | (1 &amp;amp;lt;&amp;amp;lt; 0); // set datalen to 8 and turn on uart&lt;BR /&gt;while(1) {&lt;BR /&gt;&amp;lt;span class="Apple-tab-span" style="white-space: pre;"&amp;gt; &amp;lt;/span&amp;gt;while(~STAT &amp;amp;amp; ((1 &amp;amp;lt;&amp;amp;lt; 0) | (1 &amp;amp;lt;&amp;amp;lt; 2))); // wait for tx rdy and rx rdy&lt;BR /&gt;&amp;lt;span class="Apple-tab-span" style="white-space: pre;"&amp;gt; &amp;lt;/span&amp;gt;TXDAT = RXDAT;&lt;BR /&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hope this helps,&lt;BR /&gt;Noah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/559998#M15990</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/559999#M15991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheShed on Sat Jun 15 02:09:40 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Here's a few things you'll need to set-up to get a USART working, using USART0 as an example on the ISP TX/RX pins.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1. Enable the pins in the Switch Matrix&lt;BR /&gt;/* UART0: TXD = P0.4, RXD = P0.0) */ &lt;BR /&gt;LPC_SWM-&amp;amp;gt;PINASSIGN0 = ((0xFFFF0000) | (0&amp;amp;lt;&amp;amp;lt;8) | (4));&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2. Configure the Fractional baud rate generator (not always required).&lt;BR /&gt;I configure it to give a U_PCLK of 11.0592MHz from the 12MHz OSC. That will divide nicely into any standard baud rate.&lt;BR /&gt;/* Configure fractional baudrate generator */&lt;BR /&gt;LPC_SYSCON-&amp;amp;gt;PRESETCTRL &amp;amp;amp;= ~(1&amp;amp;lt;&amp;amp;lt;2);&lt;BR /&gt;LPC_SYSCON-&amp;amp;gt;PRESETCTRL |= (1&amp;amp;lt;&amp;amp;lt;2);&lt;BR /&gt;LPC_SYSCON-&amp;amp;gt;UARTCLKDIV = LPC8xx_SERIAL_UARTCLKDIV;&lt;BR /&gt;LPC_SYSCON-&amp;amp;gt;UARTFRGDIV = LPC8xx_SERIAL_UARTFRGDIV;&lt;BR /&gt;LPC_SYSCON-&amp;amp;gt;UARTFRGMULT = LPC8xx_SERIAL_UARTFRGMULT;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;3. Enable the peripheral clock &lt;BR /&gt;/* Enable Clk */&lt;BR /&gt;LPC_SYSCON-&amp;amp;gt;SYSAHBCLKCTRL |= (1&amp;amp;lt;&amp;amp;lt;14);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;4. Configure the USART&lt;BR /&gt;/* Configure USART0 */&lt;BR /&gt;LPC_SYSCON-&amp;amp;gt;PRESETCTRL &amp;amp;amp;=~(1&amp;amp;lt;3);&lt;BR /&gt;LPC_SYSCON-&amp;amp;gt;PRESETCTRL |=(1&amp;amp;lt;3);&lt;BR /&gt;LPC_USART0-&amp;amp;gt;BRG = (LPC8xx_SERIAL_U_PCLK / ( speed&amp;amp;lt;&amp;amp;lt;4 )) -1;&lt;BR /&gt; LPC_USART0-&amp;amp;gt;CFG = CFG_DL8 | CFG_NOPARITY | CFG_STOP1 | CFG_ENA;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;That should be enough to get you going. I've left some of the detail, like the Fractional baud rate generator setup, for you to work out....&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;--&lt;BR /&gt;mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/559999#M15991</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560000#M15992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Sat Jun 15 22:04:18 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;h3&amp;gt;Hi noah,&amp;lt;/h3&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;Thanks for the help. your code is working but with little modification.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;CFG = (1 &amp;amp;lt;&amp;amp;lt; 2) | (1 &amp;amp;lt;&amp;amp;lt; 0); // set datalen to 8 and turn on uart&lt;BR /&gt;while(1) {&lt;BR /&gt; &amp;lt;strong&amp;gt;while(!(STAT &amp;amp;amp; ((1 &amp;amp;lt;&amp;amp;lt; 0)))); // wait for rx data&amp;lt;/strong&amp;gt;&lt;BR /&gt; TXDAT = RXDAT;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;vs&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560000#M15992</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560001#M15993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Sat Jun 15 22:36:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi mike&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;my program is working with these parameters configuration with polling method now want to receive by interrupt subroutine.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;one question : for interrupt subroutine, is it require pragma? &amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;vs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560001#M15993</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560002#M15994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheShed on Sun Jun 16 03:40:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi vs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Should be no need for a pragma, the cortex was designed to be able to call a 'C' function directly from an interrupt. Although this may depend on the compiler you are using...&lt;BR /&gt;You should just have to link your interrupt handler to the vector table. &lt;BR /&gt;How this is done depends on the compiler and the way the envirionment has been set-up but you should be able to find a vector table somewhere.&lt;BR /&gt;You will also need to configure the NVIC to enable the irq and set its priority.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;--&lt;BR /&gt;mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560002#M15994</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560003#M15995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by noahk on Sun Jun 16 10:28:18 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi vs,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I just looked at the code I wrote again, and it was wrong, here's a single line that should work better:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;while(~STAT &amp;amp;amp; ((1 &amp;amp;lt;&amp;amp;lt; 0) | (1 &amp;amp;lt;&amp;amp;lt; 2)));&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The way it was written first would continue if tx OR rx was ready. I meant to have it wait for both.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Noah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560003#M15995</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560004#M15996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Tue Jun 18 03:36:01 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi mike&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I am using gcc compiler and LPCxpresso IDE. I configured &amp;nbsp;NVIC to enable UART0_IRQn and also set priority"NVIC_SetPriority(UART0_IRQn,1)"and linked interrupt handler to vector table but still not getting interrupt on RX.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In declaration of specific IRQ handlers(lpc8xx startup &amp;nbsp;C file), all IRQ handlers(uart0, uart1, uart2,..etc) are alised to the Intdefaulthandler, which is a 'forever' loop. Should I have to change in that declaration?&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div&amp;gt;----&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div&amp;gt;vs&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560004#M15996</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560005#M15997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Tue Jun 18 03:50:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi Noah&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I tried that it is working.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Now I want to receive data by interrupt method. Please help me.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you Noah&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;vs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560005#M15997</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560006#M15998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheShed on Tue Jun 18 05:29:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;vs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The IRQ handler declaration will look someting like this:&lt;BR /&gt;void UART0_IRQHandler(void) ALIAS(IntDefaultHandler);&lt;BR /&gt;where ALIAS is a MACRO: &lt;BR /&gt;#define ALIAS(f) __attribute__ ((weak, alias (#f)))&lt;BR /&gt;The 'weak' attribute means that this symbol may be over-written by a 'strong' symbol with the same name.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;So if you name your interrupt handler '&amp;lt;span class="nf"&amp;gt;UART0_IRQHandler()' the toolchain will take care of linking your interrupt handler to the vector table. &lt;BR /&gt;&amp;lt;/span&amp;gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Apart from that, the only other thing you should need to do is set the RX_RDY bit in the USART INTENSET register.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;--&lt;BR /&gt;mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560006#M15998</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560007#M15999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Tue Jun 18 07:32:27 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi mike&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ok, I will try that .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560007#M15999</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560008#M16000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by noahk on Tue Jun 18 12:25:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi vs,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I hope Mike's help works for you on getting an ISR set up. I don't have much information on that. Regarding the ISR functionality you can do something like this:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;main() {&lt;BR /&gt;&amp;nbsp; INTENSET = (1 &amp;amp;lt;&amp;amp;lt; 0); // enable rx rdy interrupt&lt;BR /&gt;};&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;isr() {&lt;BR /&gt;&amp;nbsp; int intstat = INTSTAT;&lt;BR /&gt;&amp;nbsp; if(intstat &amp;amp;amp; (1 &amp;amp;lt;&amp;amp;lt; 0)) { // rx rdy interrupt&lt;BR /&gt;&amp;nbsp; &amp;nbsp; TXDAT = RXDAT; // write rx data to tx buffer&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;For your situation, checking TXRDY doesn't seem necessary. You also don't want to enable the TXRDY interrupt, otherwise you will be stuck in the ISR. Another way of doing this with checking TXRDY could be: (Much more complicated than necessary for your situation, but useful for demonstrating functionality.)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;int txrdy_flag;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;main() {&lt;BR /&gt;&amp;nbsp; txrdy_flag = 0;&lt;BR /&gt;&amp;nbsp; INTENSET = (1 &amp;amp;lt;&amp;amp;lt; 2) | (1 &amp;amp;lt;&amp;amp;lt; 0); // enable tx and rx interrupts&lt;BR /&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;isr() {&lt;BR /&gt;&amp;nbsp; int intstat = INTSTAT; // equivalent to STAT &amp;amp;amp; INTENSET: ie, only the statuses that you want interrupts for&lt;BR /&gt;&amp;nbsp; if(intstat &amp;amp;amp; (1 &amp;amp;lt;&amp;amp;lt; 0)) { // rx rdy interrupt&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if(!txrdy_flag)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; abort_error();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; txrdy_flag = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; TXDAT = RXDAT; // write rx data to tx buffer&lt;BR /&gt;&amp;nbsp; &amp;nbsp; INTENSET = (1 &amp;amp;lt;&amp;amp;lt; 2); // re-enable tx rdy interrupt&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if(intstat &amp;amp;amp; (1 &amp;amp;lt;&amp;amp;lt; 2)) { // tx rdy interrupt&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if(txrdy_flag)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; abort_error();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; txrdy_flag = 1; // save tx rdy flag&lt;BR /&gt;&amp;nbsp; &amp;nbsp; INTENCLR = (1 &amp;amp;lt;&amp;amp;lt; 2); // disable tx rdy interrupt&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Noah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560008#M16000</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560009#M16001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Wed Jun 19 23:19:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi mike&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;It's done. Actually before this help I set RXRDY and TXRDY (silly mistake), that's why didn't get any output.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you very much for your support.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;---&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;vs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560009#M16001</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC810 uart_echo help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560010#M16002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vs on Wed Jun 19 23:25:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hi Noah&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You are right. I don't need to check TXRDY so only set a RXRDY interrupt.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You and mike help me a lot. Thank you for your support.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;-----&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;vs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC810-uart-echo-help/m-p/560010#M16002</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:47Z</dc:date>
    </item>
  </channel>
</rss>

