<?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 Issue with recieve on UART in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-with-recieve-on-UART/m-p/594246#M22599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SodaAnt on Fri Aug 15 20:20:21 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So I've finally gotten the transmit side of one of the UARTS working, but for some reason I can never get the UART to receive anything. I've tried two different USB to UART adapters, and even connecting the TX and RX pins directly on the board, however I still get absolutely no data, and the interrupt is never triggered. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void UART_INIT(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CGU-&amp;gt;BASE_UART0_CLK |= 0x9 &amp;lt;&amp;lt; 24;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CCU2-&amp;gt;CLK_APB0_USART0_CFG |= 0x1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;LCR |= (1 &amp;lt;&amp;lt; 7 | 3);// Set USART0 word length to 8-bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;DLL = 36;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;DLM |= 0;// Eq 6 in manual&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;LCR &amp;amp;= ~(1 &amp;lt;&amp;lt; 7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;FDR |= (13 &amp;lt;&amp;lt; 4 | 7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;FCR |= 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;IER |= 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_SetPriority(USART0_IRQn, 13);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(USART0_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what's going wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:21:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:21:07Z</dc:date>
    <item>
      <title>Issue with recieve on UART</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-with-recieve-on-UART/m-p/594246#M22599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SodaAnt on Fri Aug 15 20:20:21 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So I've finally gotten the transmit side of one of the UARTS working, but for some reason I can never get the UART to receive anything. I've tried two different USB to UART adapters, and even connecting the TX and RX pins directly on the board, however I still get absolutely no data, and the interrupt is never triggered. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void UART_INIT(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CGU-&amp;gt;BASE_UART0_CLK |= 0x9 &amp;lt;&amp;lt; 24;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CCU2-&amp;gt;CLK_APB0_USART0_CFG |= 0x1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;LCR |= (1 &amp;lt;&amp;lt; 7 | 3);// Set USART0 word length to 8-bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;DLL = 36;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;DLM |= 0;// Eq 6 in manual&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;LCR &amp;amp;= ~(1 &amp;lt;&amp;lt; 7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;FDR |= (13 &amp;lt;&amp;lt; 4 | 7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;FCR |= 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USART0-&amp;gt;IER |= 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_SetPriority(USART0_IRQn, 13);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(USART0_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what's going wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:21:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-with-recieve-on-UART/m-p/594246#M22599</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with recieve on UART</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-with-recieve-on-UART/m-p/594247#M22600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Sun Aug 17 01:49:20 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just an idea: Have a look into the GPIO block. When I remember correctly, there was a bit which enables input on a GPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This bit was not available in earlier controllers. Something like EZI or so...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Around page 385 of user manual)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:21:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-with-recieve-on-UART/m-p/594247#M22600</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with recieve on UART</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-with-recieve-on-UART/m-p/594248#M22601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nerd herd on Sun Aug 17 17:42:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would first start off by ruling out the hardware as the culprit by setting the RX pin as a GPIO input and see if you can read from the pin correctly. If that test passes, I would check to make sure there is a signal for the MCU to receive on the UART RX pin. Do you have an oscilloscope or logic analyzer to check that there is a signal?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aside from this, we have a software platform called LPCOpen which contains several peripheral drivers and software examples, including UART. If you're interested on checking out UART code from LPCOpen, you can download them here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Flpcopen-software-development-platform-lpc43xx-packages" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:21:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Issue-with-recieve-on-UART/m-p/594248#M22601</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:21:08Z</dc:date>
    </item>
  </channel>
</rss>

