<?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 LPC2388 uart1 cann't send message in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-uart1-cann-t-send-message/m-p/709476#M28621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #f2f2f5;"&gt;I&amp;nbsp; use the LPC2388 microcontroller in&amp;nbsp;my&amp;nbsp; system.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #f2f2f5;"&gt;&lt;SPAN&gt;Config&amp;nbsp; as below.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #f2f2f5;"&gt;&lt;SPAN&gt;Uart0 could correctly send message ,but uart1 could not correctly send &lt;SPAN style="background-color: #f2f2f5;"&gt;message&amp;nbsp;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #f2f2f5;"&gt;Thank you for your help !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PINSEL4 &amp;amp;= 0xFFFFFFF0; &lt;BR /&gt; PINSEL4 |= 0x0000000A; /* Enable RxD1 P2.1 *//* Enable TxD1 P2.0 */&lt;BR /&gt; &lt;BR /&gt; PCONP |= (1UL &amp;lt;&amp;lt; 4); //Enable UART1 interface power/clock&lt;BR /&gt; U1LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */&lt;BR /&gt; U1DLL = 4; /* for 12MHz PCLK Clock ,baudrate 115200*/&lt;BR /&gt; U1FDR = 0x85; /* for 12MHz PCLK Clock */&lt;BR /&gt; U1LCR = 0x03; /* DLAB = 0 */&lt;/P&gt;&lt;P&gt;PINSEL0 &amp;amp;= 0xFFFFFF0F; &lt;BR /&gt; PINSEL0 |= 0x00000050;&lt;BR /&gt; &lt;BR /&gt; PCONP |= (1UL &amp;lt;&amp;lt; 3); /* Enable UART0 interface power/clock */&lt;BR /&gt; U0LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */&lt;BR /&gt; U0DLL = 4; /* for 12MHz PCLK Clock */&lt;BR /&gt; U0FDR = 0x85;&amp;nbsp;&lt;BR /&gt; U0LCR = 0x03;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int SER1_PutChar (int ch) {&lt;/P&gt;&lt;P&gt;while (!(U1LSR &amp;amp; 0x20));&lt;BR /&gt; U1THR = ch; &lt;BR /&gt; while (!(U0LSR &amp;amp; 0x20));&lt;BR /&gt; U0THR = ch; &lt;BR /&gt; return (ch);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2017 10:58:06 GMT</pubDate>
    <dc:creator>liyabin</dc:creator>
    <dc:date>2017-10-18T10:58:06Z</dc:date>
    <item>
      <title>LPC2388 uart1 cann't send message</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-uart1-cann-t-send-message/m-p/709476#M28621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #f2f2f5;"&gt;I&amp;nbsp; use the LPC2388 microcontroller in&amp;nbsp;my&amp;nbsp; system.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #f2f2f5;"&gt;&lt;SPAN&gt;Config&amp;nbsp; as below.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #f2f2f5;"&gt;&lt;SPAN&gt;Uart0 could correctly send message ,but uart1 could not correctly send &lt;SPAN style="background-color: #f2f2f5;"&gt;message&amp;nbsp;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #f2f2f5;"&gt;Thank you for your help !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PINSEL4 &amp;amp;= 0xFFFFFFF0; &lt;BR /&gt; PINSEL4 |= 0x0000000A; /* Enable RxD1 P2.1 *//* Enable TxD1 P2.0 */&lt;BR /&gt; &lt;BR /&gt; PCONP |= (1UL &amp;lt;&amp;lt; 4); //Enable UART1 interface power/clock&lt;BR /&gt; U1LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */&lt;BR /&gt; U1DLL = 4; /* for 12MHz PCLK Clock ,baudrate 115200*/&lt;BR /&gt; U1FDR = 0x85; /* for 12MHz PCLK Clock */&lt;BR /&gt; U1LCR = 0x03; /* DLAB = 0 */&lt;/P&gt;&lt;P&gt;PINSEL0 &amp;amp;= 0xFFFFFF0F; &lt;BR /&gt; PINSEL0 |= 0x00000050;&lt;BR /&gt; &lt;BR /&gt; PCONP |= (1UL &amp;lt;&amp;lt; 3); /* Enable UART0 interface power/clock */&lt;BR /&gt; U0LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */&lt;BR /&gt; U0DLL = 4; /* for 12MHz PCLK Clock */&lt;BR /&gt; U0FDR = 0x85;&amp;nbsp;&lt;BR /&gt; U0LCR = 0x03;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int SER1_PutChar (int ch) {&lt;/P&gt;&lt;P&gt;while (!(U1LSR &amp;amp; 0x20));&lt;BR /&gt; U1THR = ch; &lt;BR /&gt; while (!(U0LSR &amp;amp; 0x20));&lt;BR /&gt; U0THR = ch; &lt;BR /&gt; return (ch);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 10:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-uart1-cann-t-send-message/m-p/709476#M28621</guid>
      <dc:creator>liyabin</dc:creator>
      <dc:date>2017-10-18T10:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2388 uart1 cann't send message</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-uart1-cann-t-send-message/m-p/709477#M28622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Li,&lt;/P&gt;&lt;P&gt;For UART usage on LPC23xx, you could take a look at following links:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.keil.com/dd/vtr/4530/3413.htm"&gt;http://www.keil.com/dd/vtr/4530/3413.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/446958"&gt;https://community.nxp.com/thread/446958&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.onarm.com/forum/18811/"&gt;http://www.onarm.com/forum/18811/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/psas/liblpc23xx/blob/master/lpc23xx-uart/lpc23xx-uart.c"&gt;https://github.com/psas/liblpc23xx/blob/master/lpc23xx-uart/lpc23xx-uart.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 21:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-uart1-cann-t-send-message/m-p/709477#M28622</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-10-23T21:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2388 uart1 cann't send message</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-uart1-cann-t-send-message/m-p/709478#M28623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I removed the jlink,the message&amp;nbsp;is ok!&lt;/P&gt;&lt;P&gt;Strange problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 06:02:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-uart1-cann-t-send-message/m-p/709478#M28623</guid>
      <dc:creator>liyabin</dc:creator>
      <dc:date>2017-11-08T06:02:52Z</dc:date>
    </item>
  </channel>
</rss>

