EmbeddedRelated.com
The 2024 Embedded Online Conference

Driving UART And find Baud Rate through PC

Started by Mohammad in LPC200012 years ago 8 replies

Hi I have a problem with UART that I don't know where is stems from. In the program I simply send a character to PC port(baud rate 9600). when...

Hi I have a problem with UART that I don't know where is stems from. In the program I simply send a character to PC port(baud rate 9600). when I use terminal of flash magic software I see the character but when I use other third-party software(Docklight, Tera Term) I don't receive anything and even my micro doesn't work anymore till I close the program. It seems to me I have an error in baud ra...


FreeRTOS + uIP serial to ethernet and vise versa ???

Started by ech3l0n in LPC200015 years ago 3 replies

I've got FreeRTOS + uIP up and running with serial and ethernet functioning 100%. I've created 2 tasks, 1 for uart and 1 for uIP. How can...

I've got FreeRTOS + uIP up and running with serial and ethernet functioning 100%. I've created 2 tasks, 1 for uart and 1 for uIP. How can I send the data that comes in from my uart1 out to my ethernet port ? Normally I just would do uip_send("Welcome!", 8); and it would send the data to my server no issues as long as I do it from inside the uIP task. I tried that from the uart ta...


Using both UART with newlib.

Started by "aurelien.courant" in LPC200017 years ago 3 replies

Hi, I'm having trouble using both UART with newlib. With this struct : const struct device_table_entry *device_table[] = { &com1, /* stdin...

Hi, I'm having trouble using both UART with newlib. With this struct : const struct device_table_entry *device_table[] = { &com1, /* stdin */ &com1, /* stdout */ &com2, /* stderr */ 0 }; /* end of list */ you can associate stdin, stdout and stderr to an &com1 etc... But I need more than those 3. I would like to add a 4th device in that list (very simple) but I don't kno...


LPC2138 UART bug or docs problem?

Started by Stephen Pelc in LPC200018 years ago 26 replies

While testing a Flash copy routine for an LPC2138, I foolishly inserted some test code and ran into the following problem. 1) The code runs...

While testing a Flash copy routine for an LPC2138, I foolishly inserted some test code and ran into the following problem. 1) The code runs in RAM 2) 14.7... MHz XTAL, clock = xtal*4, VPBDIV=1 3) All interrupts disabled 4) UART0 at 115200 baud. If the UART character transmit loop is too tight when sending a string, transmission fails. dis emit EMIT ( 4000.02DC 24801FE5 $..e ) l...


LPC2194 UART BaudRate Problem

Started by Cheng in LPC200013 years ago 3 replies

I am using LPC2129 CAN QuickStart Board and trying to get UART work. But I found the chip on the board is LPC2194/01, not LPC2129. And I did some...

I am using LPC2129 CAN QuickStart Board and trying to get UART work. But I found the chip on the board is LPC2194/01, not LPC2129. And I did some research on the LPC2194/01 baudrate setting up for the rev 01 chip. Based on the baudrate calculation in the LPC2194 user manual, I set up the UART0 register as following: PCLK is 12,000,000 HZ Expected bitrate is 38400 U0LCR = 0x83; U0D...


Embedded Web Server using TTL UART to Ethernet TCP/IP converter

Started by "che...@yahoo.co.in [lpc2000]" in LPC20009 years ago 4 replies

Hi, I am trying to implement Embedded Web Server wherein i have ported MicroC/OS-II RTOS on NXP LPC2148 MCU with a few sensors interfaced to...

Hi, I am trying to implement Embedded Web Server wherein i have ported MicroC/OS-II RTOS on NXP LPC2148 MCU with a few sensors interfaced to monitor temperature, moisture level and humidity. I am planning to use TCP-232-T from USR which is TTL UART to Ethernet TCPIP convert module so that the sensor parameters can be monitored remotely on a client PC using a web browser. Since i have no ...


lpc2148 demo code hangs on ISR

Started by CeDeROM in LPC200016 years ago 6 replies

Hello! I have used new FreeRTOS 5.0.0 gcc demo as base for my application. I have tried to use portion of J.C.Wren UART code to send and...

Hello! I have used new FreeRTOS 5.0.0 gcc demo as base for my application. I have tried to use portion of J.C.Wren UART code to send and receive data. What is wrong - I can only send two bytes of data, then program hangs. When I use gcc demo routines to send via uart everything works fine. What can be wrong? Also my device does not want to enumerate when using usb and usbserial from lpc214...


LPC2103 UART0 Interrupt Help

Started by John in LPC200016 years ago

I am having trouble getting the interrupt to work when data is received on UART0. I have verified that the UART is working, both sending an...

I am having trouble getting the interrupt to work when data is received on UART0. I have verified that the UART is working, both sending an receiving. I am using GNUARM, any pointers would be great. //main.c #include #include "lpc2103.h" #include "uart.h" char data; unsigned char test = 0; void UNDEF_Routine(); void SWI_Routine(); void IRQ_Routine()__attribute__ ((inter


LPC2368 UART1 vs. UART0 - 115k baud issue?

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


LPC2129 UART Help Needed

Started by rtos2010 in LPC200014 years ago 5 replies

I'm using the Keil MCB2100 Demo Board. LPC2129, 12MHZ crystal and PLLCFG_Val = 0x00000024 I'm using this UART demo code from " raju_nem ...

I'm using the Keil MCB2100 Demo Board. LPC2129, 12MHZ crystal and PLLCFG_Val = 0x00000024 I'm using this UART demo code from " raju_nem " at the following user group link/ It says "testing" near the code so I;m not sure it is fully working correctly? http://tech.groups.yahoo.com/group/lpc2000/files/LPC2129_UART/


Software FLow Control With LPC UART

Started by suvidhk in LPC200017 years ago 13 replies

I am implementing software flow control and want to send an Xoff character.How can I Transmit a character without flushing the Transmit FIFO and...

I am implementing software flow control and want to send an Xoff character.How can I Transmit a character without flushing the Transmit FIFO and without waiting for Transmit FIFO to be empty (especiaaly suppose the remote UART has already sent a request to stop the transmission and the FIFO is holding data). Now I need to send a xonor xoff character without transmitting the data already in th...


problem communication UART LPC2129 to LM400 bluetooth

Started by zied130187 in LPC200013 years ago 37 replies

hello , my friends i have a problem to communicate with LM400 module bluetooth. i have a development kit olimex with MCU LPC2129. i want to...

hello , my friends i have a problem to communicate with LM400 module bluetooth. i have a development kit olimex with MCU LPC2129. i want to send command "AT\r" to test the communication with LM400. i use UART interface to communicate with the module bluetooth. baud rate 19200, 1 bit stop , no parity frequency clock : 14,7456 Mhz CCLK = 58,P824 Mhz PCLK = 14,7456 Mhz divisor bau...


LPC2136 fractional divider for UART problem

Started by maxmatveev in LPC200017 years ago 4 replies

Hi! I have a problem using fractional baudrate divider on LPC2136. When i'm not using FDR i get baudrate (for example crystal is 14.318 MHz,...

Hi! I have a problem using fractional baudrate divider on LPC2136. When i'm not using FDR i get baudrate (for example crystal is 14.318 MHz, PCLK = 14.318 MHz)FDR = 0x10, DLL = 0x10, DLM = 0x00. baudrate = 55930, error about 3% from 57600. Everything is seems to be ok, UART errors with this setting are very rare. But when i using FDR to set baudrate more accurately - FDR = 0xB8, DLL = 0x...


Reg: Use of CTI Interrupt in UART's ISR implementation

Started by prab...@yahoo.co.in in LPC200015 years ago 3 replies

Hi all, I need to implement Timeout for incomplete receive packet. In UART ISR , read the RX character and store it in Buffer.If the...

Hi all, I need to implement Timeout for incomplete receive packet. In UART ISR , read the RX character and store it in Buffer.If the receive character is tail character(unsigned char)means ,give that buffer to application.If i not receive tail character for some time, which means incomplete packet i need to give this imcomplete packet also to application.For this purpose i uses CTI inte...


A question about SC16IS740 of phillips

Started by johnypatidis1 in LPC200017 years ago 1 reply

Hello , I would like to ask a question about the SC16IS740 which is a UART to I2C slave interface module. Has anybody used it before?Is it worth...

Hello , I would like to ask a question about the SC16IS740 which is a UART to I2C slave interface module. Has anybody used it before?Is it worth using it?


UART+SPI, help needed

Started by "fx.marquand" in LPC200016 years ago 8 replies

Hello, I'm currently student in placement (and french by the way, sorry if i do some mistakes on my posts ^^'). I have to connect several...

Hello, I'm currently student in placement (and french by the way, sorry if i do some mistakes on my posts ^^'). I have to connect several sensors to the kickstartboard (lpc2106) and monitor them on a terminal (for the moment). The problem is I'm a real newbie when talking about ARM, I only know PIC uC, and it's really different as you know... I'm not able to send something on spi AND...


A real virtual COM

Started by varuzhandanielyan in LPC200017 years ago 14 replies

The Philips example of virtual COM on USB is virtual only looking from the PC side. Is there any solution available, which looks like UART...

The Philips example of virtual COM on USB is virtual only looking from the PC side. Is there any solution available, which looks like UART from inside the microcontroller too? Functions like putchar, getchar and other stdio functions. Thanks in advance, Varuzhan


WDT

Started by seeessarr in LPC200019 years ago 3 replies

hi everybody well i am trying to explore the WDT in LPC 2129. I am displaying a hex value through UART when WDT generates the ...

hi everybody well i am trying to explore the WDT in LPC 2129. I am displaying a hex value through UART when WDT generates the interrupt. but iam not able to get interrupt . can any one tell me how to do this thanks


UART TX FIFO and INTs problem

Started by forum_microbit in LPC200020 years ago 43 replies

Hi all, [I'm reposting on the URL, the new lpc2000 address doesn't seem to wor I'm a bit stuck with this one, and hope...

Hi all, [I'm reposting on the URL, the new lpc2000 address doesn't seem to wor I'm a bit stuck with this one, and hope someone has some advice, I must be overlooking something and I just don't see it....... I'm using Two 256 byte circular buffers for RX and TX In


configure LPC2368 CPU clock and UART clock

Started by ben_fnr in LPC200017 years ago 4 replies

can someone help me, I am confused by the datasheet and by what I appear to be getting when setting up the clocks. I am using...

can someone help me, I am confused by the datasheet and by what I appear to be getting when setting up the clocks. I am using FreeRTOS. Basically I have some simple code that just flashes an LED and I am now trying to get UART0 up and running but the baudrate is wrong. I think this is because CCLK is not what I think it is. My main XTAL is 4Mhz and I will need to use the USB so luckily...



The 2024 Embedded Online Conference