<?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: [lpc1343] uarttest example not working</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574773#M21997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Mon May 31 09:36:37 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try connecting CTS and RTS. I have a RDB1768 from Code Red, and my cable has 5 pins connected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CTS, RTS, TX, RX&amp;nbsp; and GND&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using their example and everything works perfectly here. I haven't read the example to see if they are needed, but this is how I'm using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:32:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:32:47Z</dc:date>
    <item>
      <title>[lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574767#M21991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Joram on Mon May 31 07:38:56 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to get the uarttest example working but the characters i'm receiving with hyperterminal or a visual studio application do not match. Most of the time i receive a ?.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i've done is cut a rs232 cable in half and made a header to the rx,tx and signal ground. Connected those to the lpc1343 board(the one you can break apart) and ajusted the example so it send automaticly some text every second or so:&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;if (send_i &amp;gt; 200000)
{
UARTBuffer[0] = 'a';
UARTBuffer[1] = 'b';
UARTBuffer[2] = 'a';
UARTBuffer[3] = 'b';
UARTBuffer[4] = '/0';
UARTSend( (uint8_t *)UARTBuffer, 5 );
send_i = 0;
}
send_i++;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what i receive is: O???O???O???O???O???O???O???O???O&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do i have to connect more from the rs232 cable or change some settings in the application?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574767#M21991</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574768#M21992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Mon May 31 07:52:02 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What's your port configuration in your PC and in your board?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Baud rate, port, data bits, stop bits, parity...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574768#M21992</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574769#M21993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Joram on Mon May 31 08:10:33 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;i haven't changed anything, what i can see in the code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8 bits, no Parity, 1 Stop bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;port 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i've tried 9600 and 115200 baudrate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574769#M21993</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574770#M21994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Mon May 31 08:41:38 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do you receive this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;O???O???O???O???O???O???O???O???O&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574770#M21994</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574771#M21995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Joram on Mon May 31 08:45:09 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;my visual studio application which listens to the serial port, the application is good cause it worked with my atmega32 and other things&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but also hyperterminal gives bad output&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574771#M21995</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574772#M21996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Mon May 31 09:24:55 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So, your application and/or hyperterminal Com port do have the same configuration as the example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you post the code for the example also?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574772#M21996</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574773#M21997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Mon May 31 09:36:37 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try connecting CTS and RTS. I have a RDB1768 from Code Red, and my cable has 5 pins connected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CTS, RTS, TX, RX&amp;nbsp; and GND&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using their example and everything works perfectly here. I haven't read the example to see if they are needed, but this is how I'm using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574773#M21997</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574774#M21998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Joram on Mon May 31 11:54:05 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;i've connected the other pins but no result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;/*****************************************************************************
 *&amp;nbsp;&amp;nbsp; uart.c:&amp;nbsp; UART API file for NXP LPC13xx Family Microprocessors
 *
 *&amp;nbsp;&amp;nbsp; Copyright(C) 2008, NXP Semiconductor
 *&amp;nbsp;&amp;nbsp; All rights reserved.
 *
 *&amp;nbsp;&amp;nbsp; History
 *&amp;nbsp;&amp;nbsp; 2008.08.21&amp;nbsp; ver 1.00&amp;nbsp;&amp;nbsp;&amp;nbsp; Preliminary version, first Release
 *
******************************************************************************/
#include "LPC13xx.h"
#include "uart.h"

volatile uint32_t UARTStatus;
volatile uint8_t&amp;nbsp; UARTTxEmpty = 1;
volatile uint8_t&amp;nbsp; UARTBuffer[BUFSIZE];
volatile uint32_t UARTCount = 0;

/*****************************************************************************
** Function name:UART_IRQHandler
**
** Descriptions:UART interrupt handler
**
** parameters:None
** Returned value:None
** 
*****************************************************************************/
void UART_IRQHandler(void)
{
&amp;nbsp; uint8_t IIRValue, LSRValue;
&amp;nbsp; uint8_t Dummy = Dummy;

&amp;nbsp; IIRValue = LPC_UART-&amp;gt;IIR;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; IIRValue &amp;gt;&amp;gt;= 1;/* skip pending bit in IIR */
&amp;nbsp; IIRValue &amp;amp;= 0x07;/* check bit 1~3, interrupt identification */
&amp;nbsp; if (IIRValue == IIR_RLS)/* Receive Line Status */
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; LSRValue = LPC_UART-&amp;gt;LSR;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Receive Line Status */
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (LSRValue &amp;amp; (LSR_OE | LSR_PE | LSR_FE | LSR_RXFE | LSR_BI))
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* There are errors or break interrupt */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Read LSR will clear the interrupt */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTStatus = LSRValue;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dummy = LPC_UART-&amp;gt;RBR;/* Dummy read on RX to clear 
interrupt, then bail out */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (LSRValue &amp;amp; LSR_RDR)/* Receive Data Ready */
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* If no error on RLS, normal ready, save into the data buffer. */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Note: read RBR will clear the interrupt */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTBuffer[UARTCount++] = LPC_UART-&amp;gt;RBR;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (UARTCount == BUFSIZE)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTCount = 0;/* buffer overflow */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; else if (IIRValue == IIR_RDA)/* Receive Data Available */
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Receive Data Available */
&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTBuffer[UARTCount++] = LPC_UART-&amp;gt;RBR;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (UARTCount == BUFSIZE)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTCount = 0;/* buffer overflow */
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; else if (IIRValue == IIR_CTI)/* Character timeout indicator */
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Character Time-out indicator */
&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTStatus |= 0x100;/* Bit 9 as the CTI error */
&amp;nbsp; }
&amp;nbsp; else if (IIRValue == IIR_THRE)/* THRE, transmit holding register empty */
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* THRE interrupt */
&amp;nbsp;&amp;nbsp;&amp;nbsp; LSRValue = LPC_UART-&amp;gt;LSR;/* Check status in the LSR to see if
valid data in U0THR or not */
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (LSRValue &amp;amp; LSR_THRE)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTTxEmpty = 1;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTTxEmpty = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; return;
}

/*****************************************************************************
** Function name:UARTInit
**
** Descriptions:Initialize UART0 port, setup pin select,
**clock, parity, stop bits, FIFO, etc.
**
** parameters:UART baudrate
** Returned value:None
** 
*****************************************************************************/
void UARTInit(uint32_t baudrate)
{
&amp;nbsp; uint32_t Fdiv;
&amp;nbsp; uint32_t regVal;

&amp;nbsp; UARTTxEmpty = 1;
&amp;nbsp; UARTCount = 0;
&amp;nbsp; 
&amp;nbsp; NVIC_DisableIRQ(UART_IRQn);

&amp;nbsp; LPC_IOCON-&amp;gt;PIO1_6 &amp;amp;= ~0x07;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; UART I/O config
&amp;nbsp; LPC_IOCON-&amp;gt;PIO1_6 |= 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // UART RXD
&amp;nbsp; LPC_IOCON-&amp;gt;PIO1_7 &amp;amp;= ~0x07;
&amp;nbsp; LPC_IOCON-&amp;gt;PIO1_7 |= 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // UART TXD
&amp;nbsp; // Enable UART clock
&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;12);
&amp;nbsp; LPC_SYSCON-&amp;gt;UARTCLKDIV = 0x1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // divided by 1

&amp;nbsp; LPC_UART-&amp;gt;LCR = 0x83;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 8 bits, no Parity, 1 Stop bit
&amp;nbsp; regVal = LPC_SYSCON-&amp;gt;UARTCLKDIV;
&amp;nbsp; Fdiv = (((SystemCoreClock*LPC_SYSCON-&amp;gt;SYSAHBCLKDIV)/regVal)/16)/baudrate ;//baud rate

&amp;nbsp; LPC_UART-&amp;gt;DLM = Fdiv / 256;
&amp;nbsp; LPC_UART-&amp;gt;DLL = Fdiv % 256;
&amp;nbsp; LPC_UART-&amp;gt;LCR = 0x03;// DLAB = 0
&amp;nbsp; LPC_UART-&amp;gt;FCR = 0x07;// Enable and reset TX and RX FIFO.

&amp;nbsp; // Read to clear the line status.
&amp;nbsp; regVal = LPC_UART-&amp;gt;LSR;

&amp;nbsp; // Ensure a clean start, no data in either TX or RX FIFO.
// CodeRed - added parentheses around comparison in operand of &amp;amp;
&amp;nbsp; while (( LPC_UART-&amp;gt;LSR &amp;amp; (LSR_THRE|LSR_TEMT)) != (LSR_THRE|LSR_TEMT) );
&amp;nbsp; while ( LPC_UART-&amp;gt;LSR &amp;amp; LSR_RDR )
&amp;nbsp; {
regVal = LPC_UART-&amp;gt;RBR;// Dump data from RX FIFO
&amp;nbsp; }
 
&amp;nbsp; // Enable the UART Interrupt
&amp;nbsp; NVIC_EnableIRQ(UART_IRQn);

#if TX_INTERRUPT
&amp;nbsp; LPC_UART-&amp;gt;IER = IER_RBR | IER_THRE | IER_RLS;// Enable UART interrupt
#else
&amp;nbsp; LPC_UART-&amp;gt;IER = IER_RBR | IER_RLS;// Enable UART interrupt
#endif
&amp;nbsp; return;
}

/*****************************************************************************
** Function name:UARTSend
**
** Descriptions:Send a block of data to the UART 0 port based
**on the data length
**
** parameters:buffer pointer, and data length
** Returned value:None
** 
*****************************************************************************/
void UARTSend(uint32_t *BufferPtr, uint32_t Length)
{
&amp;nbsp; 
&amp;nbsp; while ( Length != 0 )
&amp;nbsp; {
&amp;nbsp; /* THRE status, contain valid data */
#if !TX_INTERRUPT
&amp;nbsp; while ( !(LPC_UART-&amp;gt;LSR &amp;amp; LSR_THRE) );
&amp;nbsp; LPC_UART-&amp;gt;THR = *BufferPtr;
#else
&amp;nbsp; /* Below flag is set inside the interrupt handler when THRE occurs. */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while ( !(UARTTxEmpty &amp;amp; 0x01) );
&amp;nbsp; LPC_UART-&amp;gt;THR = *BufferPtr;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UARTTxEmpty = 0;/* not empty in the THR until it shifts out */
#endif
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BufferPtr++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Length--;
&amp;nbsp; }
&amp;nbsp; return;
}

/******************************************************************************
**&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;&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; End Of File
******************************************************************************/
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574774#M21998</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574775#M21999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Mon May 31 23:32:16 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code you send seems to be from the example bundle so that should work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do have one question though, did you connect the LPC1343 directly to you PCs com-port using the cutted RS232 cable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Joram&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;What i've done is cut a rs232 cable in half and made a header to the rx,tx and signal ground. Connected those to the lpc1343 board(the one you can break apart) and ajusted the example so it send automaticly some text every second or so:&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574775#M21999</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574776#M22000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Joram on Mon May 31 23:54:57 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;yes i did directly connected it, it was a rs232 extension cable&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574776#M22000</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574777#M22001</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 Jun 01 04:56:01 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Joram&lt;/STRONG&gt;&lt;BR /&gt;yes i did directly connected it, it was a rs232 extension cable&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should put something like max3232 level shifter in between.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574777#M22001</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574778#M22002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Joram on Tue Jun 01 05:34:15 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;why, because my computer rs232 is 5v and the lpc1343 is 3v?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574778#M22002</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574779#M22003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Tue Jun 01 08:52:53 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you do your board or is it an LPCXpresso?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574779#M22003</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574780#M22004</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 Jun 01 09:00:16 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;rs232 is not even 5V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574780#M22004</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574781#M22005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Joram on Tue Jun 01 09:12:15 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;but the difference is the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574781#M22005</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574782#M22006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by raimond on Tue Jun 01 10:10:47 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Joram&lt;/STRONG&gt;&lt;BR /&gt;but the difference is the problem?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not quite the 3.3V or 5V value as it is the inverting problem. The RS232 inverts the signal. So a "1" at the logic level (your micro) should be sended as (at least) 0V and a "0" should be sended as 3.3V or 5V or so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The RS232 standard is" +3..+12V for "0" and -3..-12V for "1". This "one" can be aproximately as 0V, it works with newer PCs and laptops.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, you NEED to invert the signals.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574782#M22006</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574783#M22007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Thu Jun 03 07:18:59 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed a RS-232 driver is required between the PC and the LPCXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use a USB to UART cable instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574783#M22007</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: [lpc1343] uarttest example not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574784#M22008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by boltnut on Mon Aug 25 08:46:51 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;According to UM10375 page 203 algorithm, UART_PCLK=12MHz, BR=115200, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the suggested UART setup would be: DLM, DLL=4, DIVADDVAL=5, and MULVAL=8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But NXP&amp;nbsp; LPC13xx_SampleSoftware v107 demo code used DIVADDVAL=0, and MULVAL=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as default values. Why ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc1343-uarttest-example-not-working/m-p/574784#M22008</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:32:54Z</dc:date>
    </item>
  </channel>
</rss>

