UART0 interrupt on power-up

Started by brucepride in LPC200014 years ago

Hello All, I have noticed something strange with the LPC2106 UART. When I power- up the LPC2106 and it's configured, I seem to...

Hello All, I have noticed something strange with the LPC2106 UART. When I power- up the LPC2106 and it's configured, I seem to miss the very first serial character interrupt coming in on UART-0. This only happens once and only when powering up for the first time. I can reset


Roll Your Own bootloader

Started by phlpcmicro in LPC200013 years ago 3 replies

Hi, Has any one considered "rolling their own" boot loader for the LPC2000 series? Purpose - so that P0.14 can be released from the POR...

Hi, Has any one considered "rolling their own" boot loader for the LPC2000 series? Purpose - so that P0.14 can be released from the POR bootup requirement.... and used for all GPIO actions. Say for example instead of looking at P0.14 (GPIO) on POR looking at UART Rx incoming data... The Philip P89V51 (80c51) series looks at the incomming UART traffic looking for 'U' character for ...


UART 0 problem in LPC2106

Started by Srinivasa Reddy Mannem in LPC200014 years ago 3 replies

Hi, I am working LPC2106 target board. I am trying to write some data to hyper terminal using serial port ( UART 0 ). ...

Hi, I am working LPC2106 target board. I am trying to write some data to hyper terminal using serial port ( UART 0 ). But i couldn't get that. The crystal frequency of the board what i am using is 10MHz. And i set the baud rate as 9600. To tra


LPC2148 UART0 failure to receive

Started by mlcchemtrac in LPC200010 years ago 12 replies

We need to be able to disconnect and reconnect our serial communications without causing a system upset. Here is the kicker... The UART...

We need to be able to disconnect and reconnect our serial communications without causing a system upset. Here is the kicker... The UART operates correctly, RS232 9600 baud. However, when the RS232 cable is disconnected then at some later time reconnected the UART will not receive any data. I have scoped the signal through the MAX3232 and it looks as I expect. In my code the processor i...


UART RXD problem

Started by Helge Fabricius-Hansen in LPC200015 years ago 4 replies

Hi, I have a problem with the Uart of the LPC2106. When receiving datablocks from a PC (9600,N,8,1) all data except the ...

Hi, I have a problem with the Uart of the LPC2106. When receiving datablocks from a PC (9600,N,8,1) all data except the last byte is ignored. If I switch to (9600,N,8,2) on the PC it works. The LPC2106 is set for (9600,N,8,1). I am transmitting 6 dat


Need code for rx data via uart of lpc2129

Started by srk in LPC200012 years ago 2 replies

hi i need the code to rx data on lpc2129 via uart from pc. can anyone send the sample code for rx data via uart with thanks rk

hi i need the code to rx data on lpc2129 via uart from pc. can anyone send the sample code for rx data via uart with thanks rk


RS-485 w/ LPC21xx '550 UART

Started by MaxStream - Ryan Bedwell in LPC200015 years ago 2 replies

Folks, Anyone out there who's figured out how to properly time the de-assertion of the 485 driver enable when using the...

Folks, Anyone out there who's figured out how to properly time the de-assertion of the 485 driver enable when using the LPC21xx UART? Problem is, the driver needs to be tristated as quickly as possible after transmission of the last byte (perhaps during the stop bit would b


Basic UART and RS422 implementation

Started by my_c...@... in LPC200013 years ago 2 replies

I\'m somewhat new to the ARM and lower-level programming, so I have some (rather) basic questions about the UART on the LPC 2214 and then some...

I\'m somewhat new to the ARM and lower-level programming, so I have some (rather) basic questions about the UART on the LPC 2214 and then some on our implementation of half-duplex RS-422. First off, the user manual says that the 2214 has a 16-byte-deep Tx FIFO. Does this mean that when I want to transmit, I could just write myself a loop routine to read bytes out of my Tx buffer


lpc2138 5V tolerant is not really tolerant!

Started by Gus in LPC200013 years ago 14 replies

On my board I have LPC2138 connected to MAX232 running at 5V. I had problems with UART until I added a 4.7K resistor in series. and the...

On my board I have LPC2138 connected to MAX232 running at 5V. I had problems with UART until I added a 4.7K resistor in series. and the voltage high on it now is 2.3V Are the pins real 5V tolerant? The data sheet says UART RX is 5V tolerant!!! Thanks in advance Gus


UART, SPI and SSP max speed ???

Started by croquettegnu in LPC200013 years ago 9 replies

Hello all ! I'm working on the LPC214x family MCU and I need to know the different max speed, throughput for their embedded UART, SPI and SSP...

Hello all ! I'm working on the LPC214x family MCU and I need to know the different max speed, throughput for their embedded UART, SPI and SSP because I was not able to find them on the user manual ... Thanks a lot!


another dumb question on UARTs

Started by Leighton Rowe in LPC200015 years ago 1 reply

Other persons have been asking me this question... Are the UART interfaces for the lpc21xx mcu's full-duplex compatible? (rx &...

Other persons have been asking me this question... Are the UART interfaces for the lpc21xx mcu's full-duplex compatible? (rx & tx simultaneously without problems) Knowing that the lpc21xx mcu's UART - has separate Rx/tx lines, but - uses the same memory addre


UART and interrupt

Started by riccardoventrella in LPC200012 years ago 4 replies

Hi, I'm trying to use a sort home made printf ( I've rewritten a small piece of it, in order to avoid to link the whole runtime to the...

Hi, I'm trying to use a sort home made printf ( I've rewritten a small piece of it, in order to avoid to link the whole runtime to the project ) within the BlinkyCAN project, in order to implement a sort of message sniffer dumping the messages onto the hyperterminal. The problem is I'm using this myprintf within the CAN transmit and receive interrupts, and within them the UART sieems to ...


UART stuck waiting for THRE

Started by mattwoolsey in LPC200011 years ago 55 replies

This should work but it doesn't. I'm just running the simple blinky.c example, but my UART 0 gets stuck waiting for the tranmit hold register...

This should work but it doesn't. I'm just running the simple blinky.c example, but my UART 0 gets stuck waiting for the tranmit hold register empty bit to set: //------------------------------------------------------------------- #include void init_serial (void) { PINSEL0 = 0x00000005; UxLCR = 0x83; UxDLL = (VPB_CLOCK/16/BAUD_RATE) & 0xFF


Missing UART interrupts on 2103

Started by Chris in LPC200010 years ago 6 replies

Hello all, Okay so ive been racking my brain over this problem for about 3-4 days now and its driving me insane, ive searched this forum high...

Hello all, Okay so ive been racking my brain over this problem for about 3-4 days now and its driving me insane, ive searched this forum high and low and tried lots of different solutions and i still get the same problems! Basically what im trying to do is setup a simple interrupt driven uart that uses a circular buffer. The method im using is as follows: I fill the circular buffer, th...


Olimex LPC2148 and IAR UART example

Started by stephan2148 in LPC200013 years ago 4 replies

Hi, Has anyone gotten the Olimex LPC2148 development board and IAR Uart example working for the LPC214X? I can see something with ...

Hi, Has anyone gotten the Olimex LPC2148 development board and IAR Uart example working for the LPC214X? I can see something with hyperterminal, however it is just junk characters. I have tried all available baud rates. Is this code possibly for a specific dev board? This is an initial test to get running, what I really need to do is get FAT16 talking to an sd/MM


transmit interrupt kicker

Started by chazeltopman in LPC200014 years ago 9 replies

Is anyone aware of another way to start the transmit interrupt running on the UART on an LPC2106 other than writing to the THR?...

Is anyone aware of another way to start the transmit interrupt running on the UART on an LPC2106 other than writing to the THR? I'd rather the interrupt routine take care of writing to the UART instead of another asynchronous thread of code doing that. I'm interfacing to a serial


SPI comms with another micro

Started by Robert Wood in LPC200013 years ago 18 replies

Chaps, I'd like to pick your collective brains. I'm using a 2194 that communicates with lots of other devices using all four CAN ports and...

Chaps, I'd like to pick your collective brains. I'm using a 2194 that communicates with lots of other devices using all four CAN ports and both UARTs. One UART communicates with an AVR which does some real time stuff and passes data to the ARM, and the other talks to a PC. I need to add another UART, which means I need to somehow free up the serial port that talks to the AVR and come u


LPC2138 IAR UART code not always working

Started by SR in LPC200013 years ago

Hello All, Ok, I have an issue with the UART on the LPC2138(IAR starter kit) with the sample code when I call the GetChar(UART1) function it...

Hello All, Ok, I have an issue with the UART on the LPC2138(IAR starter kit) with the sample code when I call the GetChar(UART1) function it seems to work sometime, other it goes into a dead loop on the while(!...) and other times it will hit the vectors on address 0x0 anyone knows what's going on?? Samuel


max baud rate with UART ?

Started by nourson54 in LPC200015 years ago 1 reply

hello, I need to interface someLPC with Lantronix Xport (UART to ethernet gateway in an single RJ45 connector). The max...

hello, I need to interface someLPC with Lantronix Xport (UART to ethernet gateway in an single RJ45 connector). The max baudrate for the Xport is 900000kbaud/s. Can I obtain it with LPC ??(I don't find the max in the user manual :( ) thanks in advance.


UART CTI ( Character time out indicator) Interrupt

Started by swetha_araga in LPC200013 years ago 8 replies

Hi, I am using MODBUS serial communication through UART on LPC2138. My transmission works fine, but for some reason during reception, I never...

Hi, I am using MODBUS serial communication through UART on LPC2138. My transmission works fine, but for some reason during reception, I never seem to get the RDA interrupt and always get the CTI instead. I have enabled only the RBR interrupt and disabled the THRE and RX line status interrupts. Anyone has faced any similar problems? Suggestions and tips are welcome Thanks, Swetha