EmbeddedRelated.com
The 2024 Embedded Online Conference

no serial port on my PC

Started by gaetanbarthelemy in LPC200018 years ago 23 replies

Hello guys, I believe that the only way to download a new program into flash is to use the UART or the JTAG. what if I don't have a Serial...

Hello guys, I believe that the only way to download a new program into flash is to use the UART or the JTAG. what if I don't have a Serial port on my computer and that I don't want to use the JTAG connection... I guess that a simple USB to UART conversion will do the job. So my question is: what is it better to use? A external adaptater or an USB to UART bridge such as the CP2102? ...


Problem with UART0 interrupts on LPC2364 and LPC2387

Started by niksaorlic in LPC200016 years ago 3 replies

I am trying to add UART communication to my project and am having some problems. I am using UART interrupts. Here is the UART...

I am trying to add UART communication to my project and am having some problems. I am using UART interrupts. Here is the UART initialization code: PINSEL0 = 0x00000050; U0LCR = 0x83; Fdiv = ( Fpclk / 16 ) / baudrate ; U0DLM = Fdiv / 256; U0DLL = Fdiv % 256; U0LCR = 0x03; U0FCR = 0x07; U0IER = 3; install_irq( UART0_INT, (void *)uart0_irq, HIGHEST_PRIOR...


VICIntEnable for UART and EINTs?

Started by empresst007 in LPC200016 years ago 6 replies

Hi All! I am setting up an interrupt to read encoder signals (EINT0 and EINT1) and then displaying my position on UART. I was able to create...

Hi All! I am setting up an interrupt to read encoder signals (EINT0 and EINT1) and then displaying my position on UART. I was able to create an echo UART, and thanks to Robert, I'm able to read encoder signals. There is an interrupt initialization line of code that prevents transmitting to Terminal through UART1. When the VICIntEnable is commented out, I can send to Terminal. Th...


LPC2000 UART Baudrate Calculator

Started by nxp_marketing_usa in LPC200017 years ago 1 reply

A new UART Baudrate Calculator has been posted on the NXP Standard ICs Website. The calculator allows you to enter in the clock rate, the...

A new UART Baudrate Calculator has been posted on the NXP Standard ICs Website. The calculator allows you to enter in the clock rate, the baudrate and the maximum allowed relative error and outputs the UART settings. The calculator works for both the standard UARTs from earlier families and the enhanced UARTs from more recent families. http://goo.gl/RX413


The uart of LPC2366 don't transmit data continuely

Started by Hieagle in LPC200014 years ago 7 replies

Hi, Can someone help me please. I use KEIL uvision and ulink2 to test the uart of lpc2366. There are a data packet of fifteen bytes to...

Hi, Can someone help me please. I use KEIL uvision and ulink2 to test the uart of lpc2366. There are a data packet of fifteen bytes to tranmit by uart of LPC2366 each second. When I use the program below: for(i=0;i


Why is my UART rx interrupt not clearing....

Started by Mike Harrison in LPC200017 years ago 1 reply

Having problems setting up UART receive interrupt on LPC2103 (IAR, using J-Link) VIC is set up OK as int code is executing, but it is not...

Having problems setting up UART receive interrupt on LPC2103 (IAR, using J-Link) VIC is set up OK as int code is executing, but it is not clearing the interrupt, so int code is getting executed continuously, despite no data actually being sent to it. IIR is showing to 0C, i.e. CTI int, but LSR bit 0 is clear, indicating no data.... The int occurs as soon as the UART interrupt is enabled, ...


LPC2148: UART 1 data throughput problem

Started by Wool Gather in LPC200013 years ago 7 replies

Hi all, Thank you so much in advance for any kind of help of suggetions. Here is my problem, Using LPC2148 i am trying to send more then...

Hi all, Thank you so much in advance for any kind of help of suggetions. Here is my problem, Using LPC2148 i am trying to send more then 1MByte of file throught UART1 with some data packet. I got working UART INTRUPT based code from some site which is working fine. Now the problem is that, when i am trying to send file data continuously using UART 1, i am not able to read more than ...


programming via UART canceled at sector 1

Started by Boris Kralik in LPC200018 years ago 16 replies

Hi all. I have a problem with programming via UART on LPC2294 system. I using USB to UART interface with FTDI FT232BM chip. When I check...

Hi all. I have a problem with programming via UART on LPC2294 system. I using USB to UART interface with FTDI FT232BM chip. When I check LPC signature, all is OK, ISP programmer found LPC chip (PartID:84016915 BootLoader:1.61). But when I erasing chip, all is OK, programming sector 0 is OK, on sector 1 chip burner give me message "Canceled, not responding". I am using ./lp2k_pgm , when I tr...


UART recieving junk data Help ....

Started by Razio in LPC200017 years ago 2 replies

Am using a lpc 2148 chip. I have most of the driver's up and working totally error free but am having real problems with the UART,sending data...

Am using a lpc 2148 chip. I have most of the driver's up and working totally error free but am having real problems with the UART,sending data had no problems but the only problem was during recieving data First i tried to test the uart i didn't recieve any inturupts, but as i read it was a common problem while using the debugger but the real problem is when i try to recieve data for w...


LPC 2148 UART problem: Wake Up after PD mode

Started by Shashank Maheshwari in LPC200012 years ago 2 replies

Hi guys I have been using LPC2148 connected with a digital hall effect sensor(external interrupt) and ZigBee(UART interface). It should...

Hi guys I have been using LPC2148 connected with a digital hall effect sensor(external interrupt) and ZigBee(UART interface). It should work in the manner such that it always stays in PD mode. Whenever external interrupt from Hall Effect Sensor is triggered it should wake up transmit a character on UART and go back to PD mode. 1.The system works perfectly when I do not use the power do...


external UART XR16L788 interfaced to LPC2366 misses bytes in full duplex mode

Started by suvidhk in LPC200017 years ago 5 replies

Hi all, I have a board with LPC2366 and Octal UART 16L788 . I have a code written for minimal operation of one channel of the UART. The...

Hi all, I have a board with LPC2366 and Octal UART 16L788 . I have a code written for minimal operation of one channel of the UART. The receive and transmit works fine independently in interrupt or poll mode. But if I make a continuous loop to check TxEmpty and then load a byte in THR then I am missing some bytes in reception . I had zeroed the code and now the loop only check for RxRe...


Simultaneous use of SSP and SPI ports on LPC1700

Started by ksdoubleshooter in LPC200011 years ago 12 replies

I have a project using an LPC1768. This project has a requirement for 7 UART's, so I used three UART's on the LPC1768 and added two SC16IS752's,...

I have a project using an LPC1768. This project has a requirement for 7 UART's, so I used three UART's on the LPC1768 and added two SC16IS752's, which are dual UART's with selectable I2C or SPI interface. I allocated SSP0 to one of the DUART's and SSP1 to the other. Each DUART has an IRQ line and I ran these back to separate EINT pins. Running the DUART's on separate SSP ports with separate interr...


Is LPC2138 UART levels OK for a 5V part?

Started by fredrikssonjohan in LPC200018 years ago 20 replies

Hi! Sorry if this is a stupid question, but I haven't found any good info about the UART levels so I better ask! Need to connect a...

Hi! Sorry if this is a stupid question, but I haven't found any good info about the UART levels so I better ask! Need to connect a LPC2138 to a Maxim (Dallas) DS2480B which is on 5V. Can they talk as it is or do I need a 3.3 to 5V buffer between? Thanks for any help! Cheers /Johan


UART Transmitter empty Interrupt with LPC2470

Started by farhan ahmad in LPC200012 years ago 2 replies

Hello Everybody, I am trying to interface a device with RS485 half duplex communication. So = below is my algorithm. 1) Set the Master Device...

Hello Everybody, I am trying to interface a device with RS485 half duplex communication. So = below is my algorithm. 1) Set the Master Device (DIR) into transmitting mode. 2) Send the data over the UART. 3) Set the Master Device (DIR) into receiving mode. To receive data from th= e device.=A0 So when the final bit is shifted out into the UART line set the Master devi= ce into receiving...


UART-like USB soft for LPC214*

Started by varuzhandanielyan in LPC200018 years ago 15 replies

Does there exist free or cheap software to run the LPC2148 USB without digging deeply into the USB protocol details? The best example is...

Does there exist free or cheap software to run the LPC2148 USB without digging deeply into the USB protocol details? The best example is the FTDIchip approach, where the USB looks like UART from both sides: PC and microcontroller. Thank you, Varuzhan


LPC2468 UART

Started by metnitin in LPC200014 years ago 8 replies

Hi, I am a newbie and trying to drive UART0 of LPC2468 but not able to drive it properly. Followed following steps: 1. Initialize UART...

Hi, I am a newbie and trying to drive UART0 of LPC2468 but not able to drive it properly. Followed following steps: 1. Initialize UART registers Baud rate : 9600-8-N-1 2. Check the LSR value 3. If LSP value is 0x40 then transmit the character on THR Can anybody guide me ------------------------------------


LPC UART RX with DMA

Started by "b.gottfried" in LPC200013 years ago 1 reply

Hi All, I'm working on LPC17xx, but maybe somebody can answer. I'm using GPDMA driver for the UART RX. I always receive the same number of...

Hi All, I'm working on LPC17xx, but maybe somebody can answer. I'm using GPDMA driver for the UART RX. I always receive the same number of characters, which I send. I see that sometimes single character is lost, but then I get additional one, after a short time. I've implemented RX ringbuffer. The DMA stops on DMA IRQ (GPDMA_STAT_INTTC), does the wrap around to the buffer, and reloads the...


Samples for UART Driver for LPC2103

Started by Tidhar Tsuri in LPC200017 years ago 1 reply

Dear Friends, I working on a problem for couple a days, I can not receive interrupt from UART0, I need some samples code...

Dear Friends, I working on a problem for couple a days, I can not receive interrupt from UART0, I need some samples code for for UART Driver for LPC2103 Thanks, Teddy Regards, Tidhar Tsuri


CTI interrupt

Started by dave...@dgtech.com in LPC200014 years ago 6 replies

Hello All, I think I have found a quirk in the LPC2292. I want to bounce this off the great minds of this forum to assure me that I...

Hello All, I think I have found a quirk in the LPC2292. I want to bounce this off the great minds of this forum to assure me that I understand this correctly. I have the UART connected to 2 physical layers via a mux. When I switch from one to the other, I sometimes get a CTI interrupt. My understanding of this interrupt is if the UART has received some bytes, but not enough to meet t...


Timer Interrupt And UART Interrupt

Started by rijan Shrestha in LPC200011 years ago 2 replies

I am having problem in understanding timer interrupts and its use? I mean ,= how it can be more useful than the delays we generaly use...

I am having problem in understanding timer interrupts and its use? I mean ,= how it can be more useful than the delays we generaly use as {while(int i=3D0;i



The 2024 Embedded Online Conference