LPC2138 UART1 problem

Started by wirelessisgood in LPC200011 years ago 5 replies

Has anyone come across this problem? UART0 and UART1 are set up identically. 115Kbaud, 8,N,1. No modem features. Both works, but after about...

Has anyone come across this problem? UART0 and UART1 are set up identically. 115Kbaud, 8,N,1. No modem features. Both works, but after about 1 hour, UART1 stops receiving. UART1 still transmits properly. Resetting IC does not get UART1 to work again. Power Cycling does not get UART1 to work again. Replacing the IC, however, does get UART1 to work again, but only for a brief time. Th...


UART0 vs UART1

Started by dimaissaev in LPC200013 years ago 5 replies

Hi all. Could anyone explane me what different between UART1 and UART0 (except modem control register in UART1). I...

Hi all. Could anyone explane me what different between UART1 and UART0 (except modem control register in UART1). I can't understant NOTHING! Two equal initialization. Equal ISR but when I try to work with UART1, system hand-up. UART0 working absolutely n


I2C problems when UART1 interrupt enabled

Started by "Mau...@yahoo.com.br [lpc2000]" in LPC20002 years ago 1 reply

Hi guys,I'm having some problems using I2C whit UART1 interrupt. I have the I2C0 working fine on a NXP LPC2378 and use it to read a serial EEPROM...

Hi guys,I'm having some problems using I2C whit UART1 interrupt. I have the I2C0 working fine on a NXP LPC2378 and use it to read a serial EEPROM from Microchip (24LC512) and my system answers to MODBUS commands over UART1. To improve better communication, I'm intended to use interrupts for the UART1. When I enable the interrupts, the system works fine until I make the first request over UART1. Af...


LPC23xx : Re-config of UART1 is not working

Started by nourson54 in LPC20009 years ago 5 replies

Hi, I made a SDCard bootloader that works well . But if I activate the UART1 in the bootloader to print some debug informations AND my...

Hi, I made a SDCard bootloader that works well . But if I activate the UART1 in the bootloader to print some debug informations AND my application firmware use the UART1, the firmware is blocking ... After some debug , it seems the second configuration of the UART1 (firt is when used in the bootloader) doesn't work. In fact the baud registers are 0 and the LPC blocks when transmitting a...


UART1 garbage

Started by thummel26 in LPC200010 years ago 1 reply

Hey guys, im using the lpc2129 with uart1 and 0 interfaced through a max232. Uart0 works ok with phillips isp, but when i print to UART1 i get...

Hey guys, im using the lpc2129 with uart1 and 0 interfaced through a max232. Uart0 works ok with phillips isp, but when i print to UART1 i get garbage. Real terminal says its framing error. Any suggestions, i have tried playing with baud rate, parity, stop bits, etc. ======================================================================== Groups related to lpc2000 ...


LPC17xx question - ISR driven Serial possible?

Started by Ron in LPC20008 years ago 10 replies

Is it possible to have a fully ISR driven serial driver on the LPC17xx series of chips? One that would follow this form: serial_putChar(char...

Is it possible to have a fully ISR driven serial driver on the LPC17xx series of chips? One that would follow this form: serial_putChar(char ch){ sendBuffer[in++] = ch; UART1-> IER |= UART_IER_THREINT_EN; } serialISR(){ if(UART1-> IIR & UART_IIR_INTID_THRE){ UART1-> THR = sendBuffer[out++]; if (out == in){ UART1-> IER &= ~UART_IER_THREINT_EN; } } } Or something similar


UART1 CODE HELP

Started by kanok53 in LPC20009 years ago 2 replies

hi, i am new in lpc2106. i want to use UART0 and UART1 simultaneously. i have successfully run the UART0 which is given in the winarm...

hi, i am new in lpc2106. i want to use UART0 and UART1 simultaneously. i have successfully run the UART0 which is given in the winarm example code. but i'm having a problem in running the UART1 which is not in the example. i have just changed the register name like U0LSR to U1LSR. i also changed the required PINSEL0 configuration. as it has the full modem interface so do i have to consider t...


UART1 I/O Pins

Started by Chris in LPC200013 years ago 1 reply

Uart1 supports many modem control signals, but I only need TXD and RXD. I understand from the archives that SPI will not work...

Uart1 supports many modem control signals, but I only need TXD and RXD. I understand from the archives that SPI will not work unless all (four) of its signals are actually enabled on physical I/O pins. I'm hoping this is not also true for uart1, which would waste many pins


ISP, UART0, UART1... comm to another cpu

Started by flashzr in LPC20007 years ago 13 replies

Hi, I'm new here and new to LPC2101. I'm reading the PDFs and creating the PCB at the same time, and I need some pointers. I know...

Hi, I'm new here and new to LPC2101. I'm reading the PDFs and creating the PCB at the same time, and I need some pointers. I know that: The chip is programmed through UART0. UART0 has RX/TX only, while UART1 has full modem control lines. My problem is that the LPC will also have to use the UART to communicate with another CPU. The simplest thing would be to use UART1 for that purpo...


UART1 practical question

Started by Milos Prokic in LPC200013 years ago 2 replies

Hi everyone, I'm using LPC2106. I want to implement an application using UART1, and my question is whether the UART1 requires...

Hi everyone, I'm using LPC2106. I want to implement an application using UART1, and my question is whether the UART1 requires me to select all of 8 pins through pin select block, or I can just select the TX, RX, RTS and CTS leaving DSR, DTR, DCD and RI for GPIO. T


UART1 for LPC2148

Started by dodge1955 in LPC200012 years ago 7 replies

I'm having a problem with getting UART1 to work on my Embedded Artists prototype board. I have a serial display that has only 1 serial line. ...

I'm having a problem with getting UART1 to work on my Embedded Artists prototype board. I have a serial display that has only 1 serial line. In other words, you can only transmit to the display. I can't get P0.8 (UART1 TX) to send any data. Here is my setup at 9600. And, another question is 'Do I really need an interrupt just to transmit? It seems like throwing a char out to U1THR shou


LPC2378, UART1 setup problems

Started by gregdeuerling in LPC200011 years ago 2 replies

Hope someone can help me see what I'm doing wrong. I'm trying to use UART1 with the TX/RX pins on P2.0 and P2.1. Nothing I do seems to work...

Hope someone can help me see what I'm doing wrong. I'm trying to use UART1 with the TX/RX pins on P2.0 and P2.1. Nothing I do seems to work with these pins. If I configure the TX/RX pins on P0.15 and P0.16 UART1 works fine. Here is my pinselect and UART setup code: //PINSEL0 |= 0x40000000; // Enable TxD1 P0.15 //PINSEL1 |= 0x00000001; // Enable RxD1 P0.16 PINSEL4 = 0x0000000a; // En...


The weirdest of things..... Interrupts and port toggling.

Started by adrianunderwater in LPC20009 years ago 2 replies

Hi, I initially posted this problem under the heading: "lpc2138 uart1 drops interrupts" however I have ascertained that the UART1 is not...

Hi, I initially posted this problem under the heading: "lpc2138 uart1 drops interrupts" however I have ascertained that the UART1 is not missing any interrupt... But I am still stumped by my problem. In a nutshell, in the interrupt routine for uart1 transmit fifo empty, I have the following snippet of code. cmp W4,#0 ; No more characters to send, bne int_uart1_thre2 ...


LPC2468 UART1 Anomaly

Started by yellowlaser in LPC20008 years ago 5 replies

I am using an IAR LPC2468 development board and the IAR compiler for a company project. Just recently I noticed a strange issue with UART1. On...

I am using an IAR LPC2468 development board and the IAR compiler for a company project. Just recently I noticed a strange issue with UART1. On the LPC2468, UART1 has modem control support but we are not using it. The pin selects use these pins for GPIO. On rare occasions (once every 10 minutes) I receive on the LPC2468 more bytes than I transmit. The extra byte has always been a null charact...


RTS/CTS on UART1 - LPC2129

Started by Gazelle in LPC200012 years ago

Hello all, I want to setup an LPC2129 on UART1 at high baudrates in order to connect it with a Silicon Labs CP2102-GM...

Hello all, I want to setup an LPC2129 on UART1 at high baudrates in order to connect it with a Silicon Labs CP2102-GM RS232-2-USB2.0 Bridge (slave). The code below is working at 234.375 bps, but I am loosing data and suspect that it is because I do not use hardware handshaking - The CP2102-GM has a full functional UART interface and also LPC2129 on UART1. So I want to activate


uart1 registers

Started by "deepak k." in LPC20006 years ago 4 replies

hello, i m using lpc2138. i want to send the data serially using UART1. but i can't find the register values for defining the registers...

hello, i m using lpc2138. i want to send the data serially using UART1. but i can't find the register values for defining the registers THRE,LSR,LCR ,RDR etc. Plz if anyone have the details about it reply me urgently. Or if anyone have keil program for sending data using UART1 then send me urgently plz! thanks in advance! deepak kajale m...@yahoo.com WebRep Overall rating


LPC2138 UART0 Problem (UART1 is OK)

Started by nkni...@yahoo.com in LPC200011 years ago 2 replies

Note: I did scan for similar questions before posting, but then it won't accept my message indicating that I need a subject on my message...which...

Note: I did scan for similar questions before posting, but then it won't accept my message indicating that I need a subject on my message...which I had...so I'm reposting here and not checking the "Scan archives..." box. I am having a problem getting output out of UART0. UART1 works fine. I have checked both with o-scope and see output on Pin 33 (Uart1), but not on pin 19 (uart0). I'm think...


Auto Flow Control @ Uart1 in LPC2368

Started by tayyaba_ch in LPC20009 years ago 1 reply

Hi I am using LPC 2368 ad using auto flow control to communicate with another LPC2368 @ Uart1,i am using 8 byte RX trigger level @ both ends.i...

Hi I am using LPC 2368 ad using auto flow control to communicate with another LPC2368 @ Uart1,i am using 8 byte RX trigger level @ both ends.i checked with oscilloscope ,data is not transferred when rts1 is high.but still i am not getting whole data ...data is missing and corrupt some time. Anybody who ever worked with uart1 , auto flow control enabled. Regards -----------------------...


UART0 - does not work while UART1 does

Started by Giuseppe Marullo in LPC20009 years ago 8 replies

Hi, I need someone to be mercy and send me a compiled gcc example of a program to send test chars on uart0 and uar1 for a LPC2138@24MHz. I...

Hi, I need someone to be mercy and send me a compiled gcc example of a program to send test chars on uart0 and uar1 for a LPC2138@24MHz. I cannot think anything wrong with what I do and that basically works for uart1. Uart0 is connected thru an FPGA, Uart1 is directly connected to a serial port. The fpga is programmed to just forward the signals between the LPC2138 and a serial port. O...


UART1 Interrupt Issues

Started by drgordon1219 in LPC200012 years ago

I am using a lpc2214 with the ASHling development kit. When I enable UART1 to work with interrupts, I seem to be losing the top 3 bits of ...

I am using a lpc2214 with the ASHling development kit. When I enable UART1 to work with interrupts, I seem to be losing the top 3 bits of the byte I am transmitting. (loopback is enabled ). For example, if I send 0x2f, I get 0x0f in my receive buffer. Could anyone please help me with this issue. I have been fighting it for about 8 days now with no suc