UART1 problems

Started by Zakaria Nakrachi in LPC200010 years ago 1 reply

Hi All, I'm trying to read from UART1 and write the output to the UART0. I'm able to write to UART0 but when I try to write the content of ...

Hi All, I'm trying to read from UART1 and write the output to the UART0. I'm able to write to UART0 but when I try to write the content of U1RBR I'm= getting 0x0 ! using my logic analyser I can see that there is data in the RXD1 pin , but = neither the ISR handler or reading roughly from the U1RBR works. here is my setting code : PINSEL0 =3D 0x00000001 // enable RxD1 ULCR =3D ...


UART1 on LPC2138

Started by thos_fernando in LPC20009 years ago 2 replies

Hello, I have a problem that UART1 on LPC2138 is dropping characters.I am communicating with a GPRS modem to send data to a server using AT...

Hello, I have a problem that UART1 on LPC2138 is dropping characters.I am communicating with a GPRS modem to send data to a server using AT commands.I am using RTS ,by writing to the U1MCR resgister,switching it OFF in the ISR if 30 characters queue up and ON in the Getch routine when 2 characters remain to be read.This is not AUTO RTS,since LPC2138 does not support it,only LPC2138/01 does. ...


uart1 of 2136?

Started by Jack Key in LPC200012 years ago

Hi. I am using UART1 along with UART0, Timer 0, I2C1, SPI1 on my LPC2136 bo= ard. My problem is that when I write a byte to U1THR, it gets...

Hi. I am using UART1 along with UART0, Timer 0, I2C1, SPI1 on my LPC2136 bo= ard. My problem is that when I write a byte to U1THR, it gets transmitted a= nd the interrupt is set. In the interrupt, I send another byte which also g= ets sent, but I dont get any further interrupt for U1THR empty. One possible thing is that the interrupt may not be getting reset, but I = transmitted the value o...


UART0 and UART1

Started by Mukund Deshmukh in LPC200012 years ago 1 reply

Hi, Any idea on how to read FIFO buffer, on UART0 and UART1, without using interrupt? Best Regards, Mukund Deshmukh. Beta Computronics Pvt...

Hi, Any idea on how to read FIFO buffer, on UART0 and UART1, without using interrupt? Best Regards, Mukund Deshmukh. Beta Computronics Pvt Ltd 10/1, IT Park, Parsodi, Nagpur-440022 Cell - 9422113746 ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/


LPC2138 another try on freertos

Started by Giuseppe Marullo in LPC20009 years ago 16 replies

Hi all, I am going to try again to port the freertos for this combination: - LPC2138 with just one uart (uart1) readily available (there is a...

Hi all, I am going to try again to port the freertos for this combination: - LPC2138 with just one uart (uart1) readily available (there is a fpga between uart1 and the serial port configured to forward data to the pc). Uart 0 pins are available and can be connected to the fpga as well but not both at the same time. - 24MHz fixed clock (slave from a FX2 chip), I would like to reach 48MH...


Re: writing to UART1 THR in LPC2138

Started by Martin Maurer in LPC200011 years ago

Hello, U1THR is a WO register. You can't read back what you have written. See user manual (UART1 register map). When you read from U1THR...

Hello, U1THR is a WO register. You can't read back what you have written. See user manual (UART1 register map). When you read from U1THR then you effectively access U1RBR (same address !), which is the receive buffer register. Regards, Martin ----- Original Message ----- From: Shilpa Shilpa To: l...@yahoogroups.com Sent: Wednesday, October 10, 2007 2:18 PM Subject: [l...


LPC2106 Problem: Conflict between uart1 and timer1

Started by voltz56 in LPC20008 years ago 5 replies

For some reason using timer1 causes uart1 not to work. Everything runs fine in the software debugger but not on the chip. Once I comment out...

For some reason using timer1 causes uart1 not to work. Everything runs fine in the software debugger but not on the chip. Once I comment out the init_timer1_irq(), all is fine. Im sure it must be something obvious that I doing wrong in my timer initialization function but I dont see it. here is a snippet of the code http://pastebin.com/rztBnuzP Regards,


Problem with LPC2378 UART

Started by jkasinathan in LPC20008 years ago 2 replies

Problem regarding UART1 in LPC2378. I am using LPC2378 microcontroller. Programming uart1 for communication.=20 Using P2.0 for TXD1 and P2.1...

Problem regarding UART1 in LPC2378. I am using LPC2378 microcontroller. Programming uart1 for communication.=20 Using P2.0 for TXD1 and P2.1 for RXD1. The initialization section of the co= de is given below. Using Crystal clock 12MHz, Baud rate is 9600 bps. PINSEL10 =3D 0X000000000; //To disable the ETM interface. PINSEL4 =3D 0X0000000a; //select TXD1 and RXD1 lines IO0DIR =3D 0...


Re: LPC2368 UART Query

Started by siover2001 in LPC200011 years ago

--- In l...@yahoogroups.com, "Kiran" wrote: > > Hi, > > It is regarding UART in the LPC2368. > UART1 has full modem control pins. >...

--- In l...@yahoogroups.com, "Kiran" wrote: > > 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 > > > no you cann't use like this. uart ter


U1 IRQ works too well (sometimes)

Started by nonuckingfumber in LPC200013 years ago 1 reply

I have a strange problem. I am using a vectored IRQ on UART1. Sometimes I boot the application and it works fine. Other times I boot it...

I have a strange problem. I am using a vectored IRQ on UART1. Sometimes I boot the application and it works fine. Other times I boot it and it locks up on the IRQ vector handler, that is it keeps re-entering the IRQ handler and never process the 'main loop'. On Entry to the IRQ handler, VICIRQStatus=0x80, indicating Uart1, but the U1LSR regist


Configuring GPIO on lpc2468

Started by khader_s_s in LPC200011 years ago 6 replies

Hi I have an lpc2468 board where I have uart0 and a GSM module connected to uart1 and a GPS module connected to uart2 where UART0= P0.2 ~...

Hi I have an lpc2468 board where I have uart0 and a GSM module connected to uart1 and a GPS module connected to uart2 where UART0= P0.2 ~ P0.3 UART1= P2.0 ~ P2.7 UART2= P0.10 ~ P0.11 UART3= P0.25 ~ P0.26 I am trying set GPIO for this. PINSEL0 |= 0x00500050; /* P0.2 TXD0 , P0.3 RXD0 & P0.10 TXD2 , P0.11 RXD2 */ PINSEL1 |= 0x003b0000; /* P0.25 TXD3 , P0.26 R...


Interrupts run but main program halts

Started by sengoontoh in LPC200013 years ago 4 replies

I've a program running interrupts on both UART0 and UART1 as well as a Match timer interrupt. All interrupts are routed through the VIC with ...

I've a program running interrupts on both UART0 and UART1 as well as a Match timer interrupt. All interrupts are routed through the VIC with Timer0 having slot 0, uart0 and uart1 having slot 1 and 2 respectively. When my application starts getting busy with lots of activity on uart 1 and uart 0, it hangs. The interrupts continue to work flawlessly. You can even t


erase Flash using UART1?

Started by gtrfender in LPC200012 years ago 3 replies

Hello, Is there a way to erase Flash instead of using the Philips Flash Utility via UART0? The LPC2292-board I'm working on is configured...

Hello, Is there a way to erase Flash instead of using the Philips Flash Utility via UART0? The LPC2292-board I'm working on is configured with UART1 on the RS232 port and UART0 communicating with the IO board. I'm developing a Loader program, however, I downloaded some code that rendered the board unable to communicate. I'm trying to erase Flash and get the board back to a known s...


modem pins on UART1

Started by Gus in LPC200014 years ago

Does UART1 with modem pins support hardware handshaking for RTS and CTS? I found registers only to set RTS and other to read CTS...

Does UART1 with modem pins support hardware handshaking for RTS and CTS? I found registers only to set RTS and other to read CTS by software but can these pins utomatically do the handshaking on hardware? Thanks in advance Gus


Uart 1 problem in LPC2103

Started by ahmedfarazvit in LPC200010 years ago

Hi all, The problem seems to be with the fractional divider registers of UART1. I have configured UART0 and UART1 for 9600bps with and...

Hi all, The problem seems to be with the fractional divider registers of UART1. I have configured UART0 and UART1 for 9600bps with and without fractional divider registers. The baud rate matches for both UARTs when there is no fractional divider used.=20 In configuration 1, I have taken MUL =3D 15 and DIV =3D 13 so that fractional division factor is less than 1.=20 In configuration 2, I...


REG: UART1 FIFO on LPC2104

Started by kumarvdpl in LPC200013 years ago 1 reply

Hi Friends, I am using lpc 2104. I am using IAR EMBEDDED WORKBENCH to develope program. I want to know about the Tx FIFO. I am writing...

Hi Friends, I am using lpc 2104. I am using IAR EMBEDDED WORKBENCH to develope program. I want to know about the Tx FIFO. I am writing values to UART1 TRANSMITTER HOLD REGISTER. I am not checking whether the U1THR is empty.The LPC 2104 has 16 bytes Tx FIFO.(as in data sheet). If i contineously writing the values to U1THR does it transmit the val


LPC 2148 - UART1 Error Characters obtain in Hyperterminal.

Started by mahaboob in LPC20009 years ago 1 reply

Hi Guys, I am very new to LPC2148, I try to implement the UART1 for the serial communication. I am using the following code, which provide...

Hi Guys, I am very new to LPC2148, I try to implement the UART1 for the serial communication. I am using the following code, which provide error characters in the Hyberterminal not the desired one. I need your Help. regards, Mahaboob. #include "LPC214x.H" #include void UART1_Init(void); void UART1_Write(char); void delay(unsigned long int); void main() { int i;


LPC2136/01 UART1 serial driver

Started by m_jamet in LPC200011 years ago 1 reply

Hi buddies, I'm need to develop a full serial driver for the enhanced UART1 (LPC2136/01 device). This includes flow control, which can be...

Hi buddies, I'm need to develop a full serial driver for the enhanced UART1 (LPC2136/01 device). This includes flow control, which can be softtware (XON/XOFF), hardware (RTS/CTS or DTR/DSR) or none. I have found many examples of simple uart drivers not using flow control but NONE using flow control. Can anyone may help me with this issue, since I have no idea how to write a serial dri...


More changes, still no Interrupt.

Started by Richard in LPC200012 years ago 6 replies

Still trying to get a UART1 interrupt using eclipse/GNUARM. Current pertinent code below. Any other ideas to consider with regards to...

Still trying to get a UART1 interrupt using eclipse/GNUARM. Current pertinent code below. Any other ideas to consider with regards to interrupts in GNUARM? Thanks void IRQ_Routine (void) __attribute__ ((interrupt("IRQ"))); void uart1ISR(void)__attribute__ ((interrupt("IRQ"))); void uart1Init(void) { // set port pins for UART1 PINSEL0 |= 0x00050000; UART1_IER |= 0x00; ...


Desperate newbie and LPC2138 or how to cook the UART1

Started by Giuseppe Marullo in LPC200010 years ago

Hi all, I am trying to make the uart work on a Xylo-LM board. At this point, it does seem I fried the uart1 i/o pins (maybe also others), I...

Hi all, I am trying to make the uart work on a Xylo-LM board. At this point, it does seem I fried the uart1 i/o pins (maybe also others), I really hope I am wrong. I adapted an example http://www.koders.com/info.aspx?c=ProjectInfo&pid=Q1LR1U3PDE53E1T32X2TT7C63A Look in Paparazzi3/sw/airborne/arm7/test Osci