<?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>LPCXpresso IDE中的主题 Re: UART Receiver in LPC1343</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590043#M28922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Dec 07 11:30:03 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1. To avoid problems with PC / level converter... you could try to use 'Loopback Mode' Chapter 11, UM10375 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You could try a simple interrupt driven NXP sample called: UART :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:24:09 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:24:09Z</dc:date>
    <item>
      <title>UART Receiver in LPC1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590039#M28918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Prithvi on Mon Dec 06 13:15:19 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't the code to receive the data by UART&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca" style="border:1px solid black;background-color:#cacaca;border:1px solid black;background-color:#cacaca;border:1px solid black;background-color:#cacaca;background-color:#cacaca;border:1px solid black;background-color:#cacaca;border:1px solid black;"&gt; &lt;PRE&gt;while ( !(LPC_UART-&amp;gt;LSR &amp;amp; LSR_RDR) );
ucData = LPC_UART-&amp;gt;RBR;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;SPAN&gt;I am testing this by sending the data back through UART&amp;nbsp; by the following code and the transmitting from lpc1343 code is working fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca" style="border:1px solid black;background-color:#cacaca;border:1px solid black;background-color:#cacaca;border:1px solid black;background-color:#cacaca;background-color:#cacaca;border:1px solid black;background-color:#cacaca;border:1px solid black;"&gt; &lt;PRE&gt;for(;;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while ( !(LPC_UART-&amp;gt;LSR &amp;amp; LSR_RDR) );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ucData = LPC_UART-&amp;gt;RBR;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while ( !(LPC_UART-&amp;gt;LSR &amp;amp; LSR_THRE) );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_UART-&amp;gt;THR = ucData;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;SPAN&gt;What ever I transmit from teminal to lpc1343, it responds rarely by sending back 0x00. Where am I going wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prithvi&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338072" rel="nofollow noopener noreferrer" target="_blank"&gt;1100890_SSP_LPC111_301.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:24:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590039#M28918</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: UART Receiver in LPC1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590040#M28919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by domen on Tue Dec 07 03:19:11 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Code seems correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Baudrate? Voltage levels?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:24:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590040#M28919</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: UART Receiver in LPC1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590041#M28920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Prithvi on Tue Dec 07 10:50:53 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The voltage for the lpc1343 is 3.3V from the lpcxpresso board. I have used ST3232 level converter. The TX to comp is working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the echo program which I mentioned in the last post only sends back zeros at times when I send any character from the computer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've modified the program to &lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;for(;;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
//&amp;nbsp;&amp;nbsp;&amp;nbsp; while ( !(LPC_UART-&amp;gt;LSR &amp;amp; LSR_RDR) );

&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0xFFFFF;i;i--);
&amp;nbsp;&amp;nbsp;&amp;nbsp; ucChoice = LPC_UART-&amp;gt;RBR;

&amp;nbsp;&amp;nbsp;&amp;nbsp; while ( !(LPC_UART-&amp;gt;LSR &amp;amp; LSR_THRE) );
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_UART-&amp;gt;THR = ucChoice;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;In this code even if I send characters from the computer it continuously sends only zeros. Why is the data sent from the computer not getting updated in the Receiver Buffer register (RBR)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590041#M28920</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: UART Receiver in LPC1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590042#M28921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Prithvi on Tue Dec 07 10:52:25 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Forgot to mention the baud rate. Its 9600 bps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590042#M28921</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: UART Receiver in LPC1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590043#M28922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Dec 07 11:30:03 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1. To avoid problems with PC / level converter... you could try to use 'Loopback Mode' Chapter 11, UM10375 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You could try a simple interrupt driven NXP sample called: UART :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:24:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590043#M28922</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: UART Receiver in LPC1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590044#M28923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Prithvi on Tue Dec 07 13:29:31 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample program of uart only has the transmission example, right? Do you have any code for the reception of data through uart?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590044#M28923</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: UART Receiver in LPC1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590045#M28924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Dec 07 18:33:04 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No, of course it's receiving (via interrupt) and transmitting :D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See Examples in your lpcxpresso_3.5 folder or NXP Example Projects:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://ics.nxp.com/support/lpcxpresso/#Examples&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590045#M28924</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: UART Receiver in LPC1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590046#M28925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by domen on Wed Dec 08 01:12:21 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I meant: do the baudrates match?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And did you enable uart pins in IOCONFIG register?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, yes, as mentioned... build on examples. Even if they're not the nicest piece of code, they usually work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/UART-Receiver-in-LPC1343/m-p/590046#M28925</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:24:11Z</dc:date>
    </item>
  </channel>
</rss>

