<?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: Uart basic using LPC43xx_uart in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522020#M4656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by embd02161991 on Wed Apr 02 11:42:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Simon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please refer to the UART examples for LPC43xx.&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%2Flpc4350apdlzip" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpc4350apdlzip&lt;/A&gt;&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Technical Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:36:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:36:44Z</dc:date>
    <item>
      <title>Uart basic using LPC43xx_uart</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522019#M4655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by L.simon on Wed Apr 02 02:06:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello to all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to set up a uart communication for debugging purposes and this is what i found so far&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to use the basic settings for transmitting from the device&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UART_CFG_Type UART_InitStruct;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void UartAction (void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UART_ConfigStructInit(&amp;amp;UART_InitStruct);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UART_Init(LPC_UART1, &amp;amp;UART_InitStruct);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Enable UART Transmit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UART_TxCmd(LPC_UART1, ENABLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//enabling interrupt flags&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_IntConfig( LPC_UART1, UART_INTCFG_THRE, ENABLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile unsigned long ul;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;char msg[40] = {'a', 'b'};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(;;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UART_TxCmd(LPC_UART1, ENABLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//UART_Send(LPC_UART1, (uint8_t *)msg , strlen(msg), BLOCKING); //strlen :Length of Transmit buffer Checking Blocking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UART_SendByte(LPC_UART1, 0x61);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//UART_Send(LPC_UART1, (uint8_t *)msg , strlen(msg), NONE_BLOCKING); //strlen :Length of Transmit buffer Checking Blocking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for( ul = 0; ul &amp;lt; mainDELAY_LOOP_COUNT2; ul++ );//basic wait loop&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i tried sending blocking and none_blocking and just sending a byte but nothing seems to work,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if i debug it seems the data does get put on the THR register (transmit hold register).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;am i forgetting something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522019#M4655</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Uart basic using LPC43xx_uart</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522020#M4656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by embd02161991 on Wed Apr 02 11:42:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Simon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please refer to the UART examples for LPC43xx.&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%2Flpc4350apdlzip" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpc4350apdlzip&lt;/A&gt;&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Technical Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522020#M4656</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Uart basic using LPC43xx_uart</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522021#M4657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by L.simon on Thu Apr 03 06:00:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, that will be very usefull in the future!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seemed i had a problem with the clock, i didn't asign one manually hoping it would automatically find the right clock frequency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After some debuging it seemed to be 3*96MHz (= 288MHZ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is now fully operational.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522021#M4657</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Uart basic using LPC43xx_uart</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522022#M4658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by L.simon on Fri Apr 04 06:55:12 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just in case someone had the same problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems i had to initialize the clocks for the Uart to be able to automatically find the frequency&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with thissimple function everything works perfectly:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CGU_Init();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This also solved my problem with the bootloader LPC_DFUsec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The freeRtos environment has problems with the bootloader if the clocks aren't initialised.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Uart-basic-using-LPC43xx-uart/m-p/522022#M4658</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:36:45Z</dc:date>
    </item>
  </channel>
</rss>

