<?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: Enquiry on UART in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536135#M4928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Wed Jul 10 01:09:05 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The data sheet says&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;The output is an ASCII capital “R”, followed by three ASCII&lt;BR /&gt;character digits representing the range in inches up to a maximum of&lt;BR /&gt;255, followed by a carriage return (ASCII 13). The baud rate is&lt;BR /&gt;9600, 8 bits, no parity, with one stop bit.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What bit don't you know how to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:40:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:40:21Z</dc:date>
    <item>
      <title>Enquiry on UART</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536134#M4927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jx1 on Tue Jul 09 23:51:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently working on a serial UART ( DALI Master and Maxsonar). I have problems writing it in LPC Xpresso. I would like to light up an LED when less than 6 inches is detected and led will not light up when more than 6 inches in example to test out. Could anyone please guide me how to start working on it ? The sequence of TX is what I am working on in datasheet. Thanks in advance&amp;nbsp; :D . &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Datasheet of Maxsonar I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.maxbotix.com/documents/MB1010_Datasheet.pdf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:40:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536134#M4927</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Enquiry on UART</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536135#M4928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Wed Jul 10 01:09:05 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The data sheet says&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;The output is an ASCII capital “R”, followed by three ASCII&lt;BR /&gt;character digits representing the range in inches up to a maximum of&lt;BR /&gt;255, followed by a carriage return (ASCII 13). The baud rate is&lt;BR /&gt;9600, 8 bits, no parity, with one stop bit.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What bit don't you know how to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536135#M4928</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Enquiry on UART</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536136#M4929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jx1 on Wed Jul 10 07:30:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi graynomad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any similar sample program to test out the range of the Maxsonar which it can detect?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:40:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536136#M4929</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enquiry on UART</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536137#M4930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Thu Jul 11 08:42:02 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No I don't, but the code would look something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define ON 1
#define OFF 0

char my_array[4];
int distance;

c = readchar(); // or whatever function you have to read a bytes from the UART
if (c == 'R') {
&amp;nbsp;&amp;nbsp; my_array[0] = readchar(); 
&amp;nbsp;&amp;nbsp; my_array[1] = readchar();
&amp;nbsp;&amp;nbsp; my_array[2] = readchar();
&amp;nbsp;&amp;nbsp; my_array[3] = 0;
&amp;nbsp;&amp;nbsp; distance = atoi(my_array);
&amp;nbsp;&amp;nbsp; if (distance &amp;gt; 6)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_led (ON);
&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_led (OFF);
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;I've just made up the function names, presumably you have (or can write) functions to get a character and set the LED.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:40:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Enquiry-on-UART/m-p/536137#M4930</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:40:23Z</dc:date>
    </item>
  </channel>
</rss>

