EmbeddedRelated.com
Memfault Beyond the Launch

LPC2468 uart 2 and 3 not running

Started by Martijn Broens in LPC200015 years ago 2 replies

Hi All, I'm trying to get all the uarts on the 2468 running. Uart 0 and 1 are running. Uart 1 and 2 not. I execute the same code for all 4...

Hi All, I'm trying to get all the uarts on the 2468 running. Uart 0 and 1 are running. Uart 1 and 2 not. I execute the same code for all 4 uart channels. With the exeption off course that the registers are different in number (U0LCR becomes U2LCR etc). I've set the pinmode register to diable pullups see below. But still not running. If I halt the cpu I can see that its waiting for : ...


LPC23xx UART Issue :Disable Uart Interupts and reenable it again

Started by prab...@yahoo.co.in in LPC200014 years ago 4 replies

Hi all, I am using LPC2364 processor and implemented UART ISR.Its working fine.I have to disable UART interrupts before go to Powerdown...

Hi all, I am using LPC2364 processor and implemented UART ISR.Its working fine.I have to disable UART interrupts before go to Powerdown mode and reenable it again after wake up from powerdown mode.For that i am using following code Disable: Clear UART bit in PCONP then UxIER = ox00; ClrInterruptSource = UxIIR | UXRBR |UxLSR; Leave VIC Interrupt se...


LPC2468 UART port not working

Started by vasanth` raj in LPC200016 years ago 1 reply

Hi, I had worked with LPC2148 prototype board with ARM GDB open OCD and its fine. Now I am using the same configrations of LPC2148 and...

Hi, I had worked with LPC2148 prototype board with ARM GDB open OCD and its fine. Now I am using the same configrations of LPC2148 and Script files for LPC2468 and try to configure the UART port with the samples available , i had burnt the code to the device flash but I could not see any prints in the terminal. I had configures for UART 0 and UART 1. I dosn't know were i go wrong. I env...


LPC2368 UART IRQ wrong data

Started by gaRek in LPC200011 years ago 4 replies

Hello ? I have a painfull problem with UART running @ LPC2368. Global scope is that I'm doing echo_test and receiving different data than send....

Hello ? I have a painfull problem with UART running @ LPC2368. Global scope is that I'm doing echo_test and receiving different data than send. First thing that should be checked are clocks, thats ok - checked. But I've observed weird behaviour recently: ? 1) Making uart implementation in the same file which contains main function, PLL initialization - works fine! 2) Making uart in ../libuart...


uart tx overrun

Started by shwouchk in LPC200016 years ago 2 replies

Hi, I am writing code for handling uart right now, and I became concerned with the size of the Tx fifo and of overrunning it. I thought...

Hi, I am writing code for handling uart right now, and I became concerned with the size of the Tx fifo and of overrunning it. I thought about using the scratch register to count how many chars were sent and each time it gets to 16 to wait for a THRE interrupt to clear it. I think this method would be highly inefficient in terms of uart transmission rates. What would you recommend for ...


Re: LPC2000 UART drops characters silently?

Started by jayasooriah in LPC200018 years ago 48 replies

System is LPC2292; XTAL = 14.7456 MHz; PLL disabled; MAM disabled; VPBDIV = 1; UART = 8-data, 1-stop, no-parity, FIFO enabled. Symptom are...

System is LPC2292; XTAL = 14.7456 MHz; PLL disabled; MAM disabled; VPBDIV = 1; UART = 8-data, 1-stop, no-parity, FIFO enabled. Symptom are that for certain (low) baud rates, UART silently drops characters on Rx channel when saturated. There is no indication of this in the LSR and none of the error bits (OE|PE|FE|BI|RXFE) are set when this happens. It appears that UART logic is failing t...


Drive UART with CMSIS Library

Started by Mohammad in LPC200012 years ago 3 replies

Hi I can drive the UART simply by my code but I want to use CMSIS and work with them. I don't know where to start and learn to write a code with...

Hi I can drive the UART simply by my code but I want to use CMSIS and work with them. I don't know where to start and learn to write a code with the library? Actually as I told you I'm trying to drive my UART port but I can't. Firstly I initialized my UART port and define it and then I change the pins function and send a char. but nothing happen. here is the code: UART_CFG_Type U...


UART Receive in LPC2368

Started by Daniel Giovanni in LPC200014 years ago 1 reply

Hello forum! I'm facing a difficulties in configuring UART[2] receive on my LPC2368 board from futurlec.com. I've succeeded in writing...

Hello forum! I'm facing a difficulties in configuring UART[2] receive on my LPC2368 board from futurlec.com. I've succeeded in writing character (transmit) to UART[2] by adapting from the sample code given, but I'm kinda confused with the sample code given to get character from UART[2]. Here's the sample code I'll be adapting from: if(U2LSR & 0x01) { uart_data = getchar2(); if(ua...


How to add uarts to an lpc2xxx

Started by Christophe in LPC200017 years ago 4 replies

Hello, for my project, I need more than two uarts that my lpc2148 provides. Futhermore I want tokeep uart_0 for code download and...

Hello, for my project, I need more than two uarts that my lpc2148 provides. Futhermore I want tokeep uart_0 for code download and communictaion with the board. So, as I am a newbie, I am wondering how it is possible to add more uarts : SPI to uart converter like the MAX3100, I2C to uart or perhaps, if it is possible software uart with GPIO. Any advices will be helpful... Thanks for yo...


UART Interrupt On Bit 9?

Started by Chris in LPC200019 years ago 2 replies

Is it possible to set the LPC21xx uart to interrupt only when a character with bit 9 set (parity=1) is received? I'm looking at...

Is it possible to set the LPC21xx uart to interrupt only when a character with bit 9 set (parity=1) is received? I'm looking at the LPC2138 spec, for example, and I don't a way to do this. Many microcontrollers can do this and the LPC uart is very complete so I thought


Uart IRQ doesn't hapen

Started by ricardo_silva_marinheiro in LPC200017 years ago 3 replies

Hello I'm working with gnuarm tools and a LPC2148, and i've a little program just to send you a feedback from a uart received char,...

Hello I'm working with gnuarm tools and a LPC2148, and i've a little program just to send you a feedback from a uart received char, based on the uart IRQ. The problem is that i can't get the ISRoutine working even when the program gets compiled without any warning or error. Could any one give a little help please?.. The declaration: unsigned long uartInterrupt (void) __att...


Slow SPI UART Interrupt?

Started by junointegration in LPC200015 years ago 2 replies

I have an MCB2300(LPC2368)eval board and an SPI Dual Uart (SC16IS752) demo board hooked up with the SPI pins from the MCU. The SPI Dual UART...

I have an MCB2300(LPC2368)eval board and an SPI Dual Uart (SC16IS752) demo board hooked up with the SPI pins from the MCU. The SPI Dual UART irq is connected to one of the MCU's GPIO for interrupt. The Dual UART is just in a loopback running in 115200. Xmit is working fine. However, receive interrupts are oddly slow! It takes 400us-600us from the time the byte is sent to SPI bus to t...


Uart Interrupt

Started by praks_1510 in LPC200015 years ago 3 replies

How to write an ISR routine to recieve data through uart? ------------------------------------

How to write an ISR routine to recieve data through uart? ------------------------------------


LPC210x UART bug ?

Started by hansklos2003 in LPC200020 years ago 4 replies

Hi! I set LPC2106 UART to work with 2 stop bits. After this I try to recieve few bytes transmitted with one stop bit, from PC...

Hi! I set LPC2106 UART to work with 2 stop bits. After this I try to recieve few bytes transmitted with one stop bit, from PC computer to LPC2106. And, what is strange for me, LPC2106 UART returns only one, last byte from transmitted frame. I think, it is an error, becouse


Using UART to send/receive LIN frame in LPC2378.

Started by Aji P in LPC200014 years ago 1 reply

Sorry i pressed the wrong button to start a new topic. :D > AFAICT, LIN have been designed to be implemented with standard UART > easily....

Sorry i pressed the wrong button to start a new topic. :D > AFAICT, LIN have been designed to be implemented with standard UART > easily. Implementing it with CAN or SPI may be next to impossible. Yes. I've read in many references, that UART can be used to send LIN frame. > I think that you have to set BREAK signal and then count the > necessary 13-bit time yourself. Furthermore, I susp


UART multiplexing or switching

Started by Doug Sutherland in LPC200019 years ago 1 reply

I wonder if anyone has ideas or suggestions for uart multiplexing, or possibly switching. The solution I am trying to get to is this: I...

I wonder if anyone has ideas or suggestions for uart multiplexing, or possibly switching. The solution I am trying to get to is this: I have an x-scale host and I have an ARM7 that connects to various devices. Three of the devices require uart IO. I would like to find a way to switch modes such that each of these three devices connects to either of the ARM proces


LINbus implementation with soft uart on LPC

Started by Martijn Broens in LPC200015 years ago 3 replies

Hi all, did anyone ever do a LINbus implementation on LPC with a soft uart? I'd like to learn more on this topic and i'm thinking of...

Hi all, did anyone ever do a LINbus implementation on LPC with a soft uart? I'd like to learn more on this topic and i'm thinking of keeping this as a fallback scenario for external communication. and the reason for a soft uart would be that this will nearly alway work even when there are no more HW uarts left. would someone be willing to share this thanks in advance, Martijn ---...


UART Baudrate Tool uploaded

Started by Joel Winarske in LPC200018 years ago 4 replies

I just posted a simple Win32 cmd line tool to calculate the optimum register settings for a LPC214x UART peripheral. I am not aware if all...

I just posted a simple Win32 cmd line tool to calculate the optimum register settings for a LPC214x UART peripheral. I am not aware if all the LPC2k UART peripherals are the same or not. If so great. I was working against the LPC2148 user manual. It seems the equation in the user manual to calculate the baud rate is incorrect. It should be:


UART current limits

Started by Andrew Berney in LPC200018 years ago 8 replies

Does anybody know if the UART TX line on the LPC2129 is capable of supplying 2.2mA, as I need it to drive an optocoupler for...

Does anybody know if the UART TX line on the LPC2129 is capable of supplying 2.2mA, as I need it to drive an optocoupler for isolation Cheers Andy


How to reliably deal with UART errors

Started by Mike Harrison in LPC200017 years ago 9 replies

I've been having some problems reliably coping with UART receive errors on the LPC2136/01 I'm reading a stream of DMX data ( 250kbits, 8N2, 88uS...

I've been having some problems reliably coping with UART receive errors on the LPC2136/01 I'm reading a stream of DMX data ( 250kbits, 8N2, 88uS break indicating frame sync). The problem seems to be that when the stream is present at startup ( i.e. before the interrupt code is set up), the UART can get itself into a state that I can't recover from, generally permamnet overrun errors. If it ge...



Memfault Beyond the Launch