UART0 - does not work while UART1 does

Started by Giuseppe Marullo in LPC200011 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...


LPC2368 UART1 vs. UART0 - 115k baud issue?

Started by goodgodgivemeanaliasalready in LPC200010 years ago 12 replies

Hi all, I am trying to get a simple pass thru of data at 115k from uart 1 to uart 0 on an lpc2368. Both are enabled (powered) and if I use...

Hi all, I am trying to get a simple pass thru of data at 115k from uart 1 to uart 0 on an lpc2368. Both are enabled (powered) and if I use 9600 baud rates, everything is fine. I'm running the unit off the 4MHz IRC. I then bumped uart0 up to 115k, had to switch the fractional baud rate settings. No problem, have 9600 baud message coming in UART1, shooting out UART0 at 115k. Then, I...


UART0 LPC2148 - RBR Interrupt

Started by sb_gustavo in LPC200012 years ago 11 replies

Hi friends, I need to use the LPC2148 UART0 data RX interruption (RBR interrupt or RDA), however the interruption is not happening. The...

Hi friends, I need to use the LPC2148 UART0 data RX interruption (RBR interrupt or RDA), however the interruption is not happening. The software below doesn't work. I'm using the compiler of the IAR Workbench. Please, help me! #include #define green 0x00400000 int data; __irq void uart0 (void); int main(void) { int cont, delay; /* Clock - APB


UART0 interupt driven using LPC2148

Started by raju_nem in LPC200010 years ago 18 replies

hi all i want to use the uart0 in interrupt mode.It means i am dispaying some text in the Hyperterminal.When i enter the character on...

hi all i want to use the uart0 in interrupt mode.It means i am dispaying some text in the Hyperterminal.When i enter the character on hyperterminal,it should go to ISR and it should display what i entered. /*main.c*/ file #include "LPC2148.h" #include "UART0.h" #include "pll.h" void uart_isr(void) __attribute__ ((interrupt)); void def_isr(void) __attribute__ ((interrupt)); void s...


LPC2138 - reading RXD0 Receiver input for UART0 to hyper terminal

Started by priyankvmaiya2 in LPC200010 years ago 4 replies

Hi, I have an external device(board) which gives data at the rate of 240 bytes = per second. This data is sent at a baud rate of 4800 baud, 8...

Hi, I have an external device(board) which gives data at the rate of 240 bytes = per second. This data is sent at a baud rate of 4800 baud, 8 bits, 1 stop b= it, and no parity. I need to collect this data into my lpc2138 board and print it to hyperterm= inal via UART0 To print some sample string from the lpc2138 board to the hyperterminal via= UART0, I had to set the baud rate to 9600 (i...


LPC2129 uart0 testing

Started by raju in LPC200010 years ago

Hi i have attached the basic UART0 program which is in LPC2129_sample Folder.The same program is tested (changes according to)with LPC2148...

Hi i have attached the basic UART0 program which is in LPC2129_sample Folder.The same program is tested (changes according to)with LPC2148 BOARD,it is working fine.But when necessary changes i have done for lpc2129,i am not getting data to the hyperterminal.I am using GNU gcc compiler with windows xp OS.Help me,thanks in advance. ------------------------------------


Looking for UART0 interrupt driven example

Started by r_bottleneck in LPC200015 years ago

Hi, I'm doing the first steps with the LPC2106. The application builder I have access to, does not work correctly . ...

Hi, I'm doing the first steps with the LPC2106. The application builder I have access to, does not work correctly . Could anybody please advice where to get an example how to program the UART0 interrupt driven (FIQ) including VIC settings? Al


Senior Project Help With the UART0

Started by jhhey121282 in LPC200012 years ago 8 replies

Hi guys, Im using an olimex 2138 header board and am trying to use the UART0 to transmit across a set of Xbees. the transmission is working as...

Hi guys, Im using an olimex 2138 header board and am trying to use the UART0 to transmit across a set of Xbees. the transmission is working as far as we know but i get a bunch of junk on the other side.now i am thinking that i am not setting the baud rate correctly but i don't know. i have tried connecting directly to the serial port and still getting the same junk. below i will include a cop...


UART0 UART1 interrupt conflict

Started by yunhebian in LPC20009 years ago 2 replies

In a program, timer0, UART0 and UART1 can run separatly without problem. But they only run several minutes if they are enabled together. I noticed...

In a program, timer0, UART0 and UART1 can run separatly without problem. But they only run several minutes if they are enabled together. I noticed there are no interrupt generated when the three failed. Anyone has this experience? Thanks, ------------------------------------


help!about UART0 and UART1 of LPC2148

Started by hbaocr in LPC200011 years ago 4 replies

I want to use both of two UART chanel for my applications.But when I do it!I have some problem! At first I receive data from UART1 then I send...

I want to use both of two UART chanel for my applications.But when I do it!I have some problem! At first I receive data from UART1 then I send data to PC through UART0 !And I have met problem that is:the font of The string I received on PC are wrong!and I can't read anything!Please help me solve that probelm! thanks ------------------------------------


debugging UART1

Started by Andy Zammy in LPC200011 years ago

hi all, i'm trying to get my uart peripheral to work (lpc2368 on MCB2300), and i'm struggling with it. first off, i'm using uart1 - the reason...

hi all, i'm trying to get my uart peripheral to work (lpc2368 on MCB2300), and i'm struggling with it. first off, i'm using uart1 - the reason i'm using 1 is because i'm not 100% sure how i can reprogram with uart0 once i start using it in an application. just so i know, how would i use uart0 in an application and still use it to reprogram? just cycle power? anyway, not the most important part ...


[lpc2104] uart0 doesn't emit 0x00 byte(s) :-O

Started by Pawel Sikora in LPC200015 years ago 1 reply

Hi, I don't know what is wrong with uart0 (or my code). testcase: int rs232_txAvailable() { return ((U0LSR &...

Hi, I don't know what is wrong with uart0 (or my code). testcase: int rs232_txAvailable() { return ((U0LSR & bit(5)) != 0); } 000000a0 : a0: e59f300c ldr r3, [pc, #12] ; b4 <.text+0xb4>


Uart0 on LPC1768 (LPC 17xx familly)

Started by Fabian in LPC20008 years ago 8 replies

Hi everybody, I try to use the Uart0 on my lpc1768, but after a lot of hours I can't obtain the correct baudrate. So communication is...

Hi everybody, I try to use the Uart0 on my lpc1768, but after a lot of hours I can't obtain the correct baudrate. So communication is wrong. Some one have a simple example to explain me how I can do correctly? Here is extract of my codes and comments 1) First of all, in the main, I call the SystemInit function (writed by nxp team - file system_LPC17xx.c vs 1.03) where clock and perip...


lpc2138 uart1 drops interrupts

Started by adrianunderwater in LPC200012 years ago 1 reply

Hi I have a following problem that I just can't get my head around. I wonder if anyone else experiences this or if I have not stumbled...

Hi I have a following problem that I just can't get my head around. I wonder if anyone else experiences this or if I have not stumbled upon the right errata sheet.... Most of the code is written in Assembly There are 4 IRQ interrupt sources; priority 0 = timer0 priority 1 = timer1 priority 10 = uart0 priority 11 = uart1 uart0 is only used for debugging and interacting with the b...


Strange Problem with Interrupts on LPC2119

Started by buckeyes1997 in LPC200010 years ago 22 replies

Hello I am fairly new to this family of processors having mostly worked with AVR in the past. Anyway I have a temperature control application...

Hello I am fairly new to this family of processors having mostly worked with AVR in the past. Anyway I have a temperature control application which is mostly running HOWEVER. I have two interrupts UART0 and Timer0. Timer happens about 2Hz and the UART0 is on received characters. I am setting the setpoint via serial commands as well as my PC software polls results via the serial. The sy...


LPC2148 UART0 vs. UART1

Started by Sutton Mehaffey in LPC200013 years ago

I have been using UART1 for quite a while reading in raw sensor values. It's worked very well. No problems. Recently, I converted my sensor...

I have been using UART1 for quite a while reading in raw sensor values. It's worked very well. No problems. Recently, I converted my sensor readings over to UART0, but I'm having a little problem getting it to work properly. I thought it would be a straight conversion, and it still looks like it should be. I changed my troubleshooting to isolate the problem. Running my code to uti...


UART1 CODE HELP

Started by kanok53 in LPC200011 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...


UART RX interrupt handlers

Started by Alaric B Snell in LPC200016 years ago 7 replies

Has anyone got a working example of a UART0 receive interrupt handler that I could study to see what I'm missing? Mine...

Has anyone got a working example of a UART0 receive interrupt handler that I could study to see what I'm missing? Mine works perfectly within Keil's ARM simulator, but in real life, sending a character in on UART0 puts the system in a new random state every time! The


Help with LPC2106

Started by shunt_2000 in LPC200012 years ago 9 replies

Hi, I am a newbie to the board but I have tried my best to find the answer to my question before posting for help. I am using a QuickStart...

Hi, I am a newbie to the board but I have tried my best to find the answer to my question before posting for help. I am using a QuickStart LPC2106 board with a 14.7456 crystal. I want to be able to accept data from the PC on UART0 and command a PTZ camera using UART1. UART0 is working just great. The camera requires 9600 bps and I am configuring PINSEL0 with the following code: //i...


Sample LPC2364 UART Program

Started by Leo Cahalan in LPC200013 years ago 1 reply

Does anyone have a very simple program that outputs a message on UART0? I am testing a new board and it appears to program correctly using the...

Does anyone have a very simple program that outputs a message on UART0? I am testing a new board and it appears to program correctly using the Flash utility, but the program does not execute and is not turning on LEDs or outputing data on UART0 as it should. I may not have configured the PLL correctly or have some othe problem. I would just like to be able to load a known working app to ...