Uart Interrup routines

Started by Owen Mooney in LPC200015 years ago

Hi, I am struggling with serial interrupt routines at the moment can anyone help? I started with simple polled UART andf...

Hi, I am struggling with serial interrupt routines at the moment can anyone help? I started with simple polled UART andf that works fine - I modified code to look like that below. If I set U0IER to 1 the whole UART seems to go to a bag of worms. It wont send da


LPC2368 UART Query

Started by Kiran in LPC200011 years ago 2 replies

Hi, It is regarding UART in the LPC2368. UART1 has full modem control pins. If UART1 is enabled & only Tx, Rx, CTS & RTS are used for UART...

Hi, It is regarding UART in the LPC2368. UART1 has full modem control pins. If UART1 is enabled & only Tx, Rx, CTS & RTS are used for UART communications, whether remaining pins (RI, DCD etc.) can be used for other application (as port pin)? Regards, Kiran


UART Receive in LPC2368

Started by Daniel Giovanni in LPC20009 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 LPC200013 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...


Re: 2148 UART example - can anyone post code?

Started by Frank Pinto in LPC200013 years ago 7 replies

hello: Did you ever get UART code for the 2148. I have the IAR 2148 development kit. I am running the UART sample code but I get junk...

hello: Did you ever get UART code for the 2148. I have the IAR 2148 development kit. I am running the UART sample code but I get junk characters on my terminal emulator (hyper terminal) when running the code. Not sure why though. Thanks Frank --- In l...@yahoogroups.com, "ah_sandiego" wrote: > > I am new to the 2148 and I would like to use the UART. Does anyone


UART access recommendations

Started by jsm09a in LPC200011 years ago 11 replies

Is it necessary/recommended for the UART Line Status Register to be consulted before each individual character is transferred to/from the UART...

Is it necessary/recommended for the UART Line Status Register to be consulted before each individual character is transferred to/from the UART ? In other words, if a THRE interrupt is delivered, it should be theoretically possible for the interrupt handler to immediately write 15 or 16 bytes directly to the Transmit Holding Register with sequential ARM instructions. Is UnTHR always able t...


making UART Intterupts work

Started by Owen Mooney in LPC200015 years ago

I have found the problem with the Uart interupts - there is a shortcomming in the phiilps documentation as follows: Note that...

I have found the problem with the Uart interupts - there is a shortcomming in the phiilps documentation as follows: Note that Interrupts must be disabled while setting up the UART. That is, set the Interupt enable bit in IER AFTER DLAB is disabled. Hope this stops som


Problem using UART for reception

Started by "n.ikhar" in LPC200011 years ago

hi all i m using lpc2468 with IAR kick start version. i have to send the instructions to ARM processor through PC. i m using uart...

hi all i m using lpc2468 with IAR kick start version. i have to send the instructions to ARM processor through PC. i m using uart terminal. i have initialized the uart by fun for the sample code given. later im checking U0LSR if RBR bit is set or not...but im not getting proper result it shows that it has received a single type of chracter...what ever we send. the uar


UART Interrupt On Bit 9?

Started by Chris in LPC200014 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


LPC2129 - Fried UART?

Started by lawzaz in LPC20007 years ago 2 replies

Hi, I have a design I'm about to produce 100 boards for. It uses an LPC2129 for some CAN sensor handling and communicates the results over...

Hi, I have a design I'm about to produce 100 boards for. It uses an LPC2129 for some CAN sensor handling and communicates the results over UART. I made a single prototype board and programmed it using ISP. At some point, UART stopped outputting - and even ISP fails now (but an LED indicates that it is actually entering the bootloader mode). Everything else works fine, and I have an SD bootl...


UART Code

Started by wmk6341 in LPC200015 years ago

I've done a couple of changes to the Blinky Lights / UART code and uploaded the new version. The major change is adding code to...

I've done a couple of changes to the Blinky Lights / UART code and uploaded the new version. The major change is adding code to initialize the VIC when UART1 is used in interrupt mode. UT040803A - Uart Test (20)04 (/) 08 (/) 03 A (1st of the day) -Bill Knight theARMPatch


Phytec LPC2294 board UART problems

Started by SR in LPC200013 years ago 1 reply

Need some advise on the UART interrupt stuff, when debugging the board I realize that when I go into the interrupt routine and come out...

Need some advise on the UART interrupt stuff, when debugging the board I realize that when I go into the interrupt routine and come out with restarting it (software) but not the board. The interrupt enabled UART does not work until I restart the whole board. This happens qite often and I just need to know why I should be able to figure it out from there. This means the code is looping on th


Uart IRQ doesn't hapen

Started by ricardo_silva_marinheiro in LPC200013 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 LPC200010 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...


Query (UART inerfacing with LPC21xx)

Started by Anonymous in LPC200014 years ago 1 reply

Hello Sir, I am new to this technical group. I am workingon Philips ARM (LPC family) controllers. I was interfacing ST16C554D UART (a...

Hello Sir, I am new to this technical group. I am workingon Philips ARM (LPC family) controllers. I was interfacing ST16C554D UART (a Startek Product) with LPC 21xx controller. I m initializing it properly in my C code. But due to some reason I was not getting results, Then I tried to write Initialization code for this external UART through LPC internal UA


Uart Interrupt

Started by praks_1510 in LPC200010 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? ------------------------------------


Can't Receive Data on UART0

Started by Nice Guy in LPC200013 years ago 5 replies

I have tried everything I can think of, but I can not receive data on the UART. I know the UART and all other hardware is good, because I can...

I have tried everything I can think of, but I can not receive data on the UART. I know the UART and all other hardware is good, because I can program the part over the exact same setup. All I want to do is send anything I receive back out, Just emulate a loopback as a first step. I can send data out the uart all day long. Below is my code, I must be doing something stupid. VPB Clock is s


LPC210x UART bug ?

Started by hansklos2003 in LPC200015 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 LPC20009 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 LPC200014 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