EmbeddedRelated.com
Memfault State of IoT Report

LPC21xx and UART0 problem

Started by riccardoventrella in LPC200017 years ago 9 replies

Hi, I'm using a MCB2100 with a LPC2129. I've written a sort of home made printf using the hyperterminal as a debugger window, but up to now I...

Hi, I'm using a MCB2100 with a LPC2129. I've written a sort of home made printf using the hyperterminal as a debugger window, but up to now I used UART1 and all went good. Now I have to port my code on a proprietary board mounting a LPC2194 that has just the UART0 exposed. I've ported the code to the UART0 in this way: ...init stuff PINSEL0 = 0x00000005; /* Enable RxD0 and TxD0 ...


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

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


UART0 and Printf

Started by jstamos111 in LPC200018 years ago 9 replies

Hey all, I am trying to get UART0 output to display on hyperterminal for a board I made based on the LPC2106 processor. I use the ISP and...

Hey all, I am trying to get UART0 output to display on hyperterminal for a board I made based on the LPC2106 processor. I use the ISP and UART0 to program the board with Philips flash utility, then start hyperterminal with the following settings: 9600 bits/second, 8 databits, no parity, 1 stop bit, and no flow control. I set hyperterminal to listen on the same com port as the one I ...


interrupts + Keil + LPC2294

Started by grodo2k in LPC200018 years ago 4 replies

Hello could someone be so kind and say, what is wrong in following code? Or maybe it is ok, but it doesn't work... I want trigger an...

Hello could someone be so kind and say, what is wrong in following code? Or maybe it is ok, but it doesn't work... I want trigger an interrupt using UART0. I am using Keil. (UART0 is ok, it sends a string from tab). thanks in advance int i,j; char tab[] = "UART0 is working properly"; void UART0INT() __irq { IO0CLR |= 0x20000; //clr P0.17 (it's a LED) for(i=0;i<5;i++)


UART0 hyperterminal

Started by Shilpa Shilpa in LPC200017 years ago 21 replies

Hi all, I am working on MCB2130 Evaluation board that has LPC2138 philips microcontroller. The UART0 is been connected to COM0 port and UART1...

Hi all, I am working on MCB2130 Evaluation board that has LPC2138 philips microcontroller. The UART0 is been connected to COM0 port and UART1 is connected to COM1 port.I have configured the UART0 for receiving the characters from the PC end which would be like connecting a cable from the board to COM1 port of one PC opening a hyperterminal and upon the execution of the code you could write some...


UART0, TC0, PWM & ADC at once on LPC2132

Started by soren_t_hansen in LPC200019 years ago 3 replies

Hi there Im making a system where I'm using all the above mentioned interrupts. I have had the TC0, PWM and the ADC running nicely until...

Hi there Im making a system where I'm using all the above mentioned interrupts. I have had the TC0, PWM and the ADC running nicely until now, but when I add the UART0 the TC0 goes dead (it's running a 1 Khz clock) I want the UART0 to give me interrupts when it receives a byte and only when that occours. When I send data I don't want to receive any


LPC2138 UART0 Problem (UART1 is OK)

Started by nkni...@yahoo.com in LPC200018 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...


UART0 - does not work while UART1 does

Started by Giuseppe Marullo in LPC200016 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 LPC200015 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 LPC200017 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 LPC200015 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 LPC200014 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...


Senior Project Help With the UART0

Started by jhhey121282 in LPC200016 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...


help!about UART0 and UART1 of LPC2148

Started by hbaocr in LPC200016 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 ------------------------------------


Uart0 on LPC1768 (LPC 17xx familly)

Started by Fabian in LPC200013 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 LPC200016 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 LPC200015 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...


UART RX interrupt handlers

Started by Alaric B Snell in LPC200020 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


Sample LPC2364 UART Program

Started by Leo Cahalan in LPC200017 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 ...


LPC2148 Uart Problem

Started by SUBRAMANIUM in LPC200013 years ago 1 reply

Hello am using LPC2148 controller. I have started to use WinArm complier now. Previously I was using Keil compiler. Now I am able to print data...

Hello am using LPC2148 controller. I have started to use WinArm complier now. Previously I was using Keil compiler. Now I am able to print data using both uart0 n uart1 but am not able to receive the data from either ports. my initialization routine is below. Kindly help. thanks in advance. /** * Initialize UART0, setup pin select, clock, parity, stop bits, FIFO, etc. * * @param baudrate...



Memfault State of IoT Report