Interrupt problem with UART0

Started by xjag74 in LPC200014 years ago 3 replies

Hi, I currently try my interrupt controlled UART0 communication (only TX for the beginning) to get startet. The problem I have is that...

Hi, I currently try my interrupt controlled UART0 communication (only TX for the beginning) to get startet. The problem I have is that the interrupts work really sporadicly after an reset or an breakpoint for one or two seconds or not. When I halt the LPC2210 by an breakpoint and rerun the communication (TX), the ARM shows the same behaviour as af


UART1 - lpc2106

Started by vidya_srinivas2000 in LPC200016 years ago 4 replies

hello all v have a lpc2106 board from nohau. i was trying to use both UART0 & 1 when my board stopped working. i was writing to...

hello all v have a lpc2106 board from nohau. i was trying to use both UART0 & 1 when my board stopped working. i was writing to UART0 and also to UART1 i am not able to download my program now with the ISP. all the voltages seem to be right and most of all my program still


LPC2148 Uart Problem

Started by SUBRAMANIUM in LPC20008 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...


drive FRAMs of Ramtron

Started by tastingfan tastingfan in LPC200014 years ago

Hi, Does anyone here drive FRAMs of Ramtron? My idea is descreibed as following: One byte (0xb0) is written into FRAM with the...

Hi, Does anyone here drive FRAMs of Ramtron? My idea is descreibed as following: One byte (0xb0) is written into FRAM with the function ??Write_FRAM_Byte()??, ??Read_FRAM_Byte()?? reads out this byte and sends it to the UART0 interface (UART0_SendByte()). But this program does not work at all, that is, there is no output to the UART0. I don??t know whether the probl


Hyperterm and sending data

Started by kd7vn in LPC200013 years ago 4 replies

I have a UART0 interrupt routine (which now works as an interrupt thank you all). The routine is set to turn on an LED when the UART0 interrupt...

I have a UART0 interrupt routine (which now works as an interrupt thank you all). The routine is set to turn on an LED when the UART0 interrupt is asserted. My problem is that the only utility I have currently to connect to my serial port is Hyperterminal (winXP box) and I'm not sure how it acts when I type chars into it. If I type characters in to the terminal window my ISR is not entered...


LPC2368 UART TEMT not set

Started by dave_albert in LPC20008 years ago 2 replies

I am using the LPC2368 and have reproduced this problem several times: In my application, there is a serial console for debugging on UART0. ...

I am using the LPC2368 and have reproduced this problem several times: In my application, there is a serial console for debugging on UART0. The application is working normally, periodically sending a status message out TXD0 when suddenly, often in the middle of a message, no more characters come out TXD0. My board has two interfaces (UART0 and an RF interface) so I'm able to query it via the ...


Will it be a problem with GCC compiler ?

Started by raju_nem in LPC200010 years ago 1 reply

Here is the flow of code. Main() { /*UART0 interrupts occures*/ } UART0_isr() { /*taking the 7 characters from...

Here is the flow of code. Main() { /*UART0 interrupts occures*/ } UART0_isr() { /*taking the 7 characters from keyboard*/ /*according to input data, calling function1*/ } function1() { /*calling one assembly function,collecting the samples from external world*/ /*calling function2*/ } function2() { /*sending the sample values to the PC*/ } Without UART0 interr...


Interrupt Install Help

Started by "Mau...@yahoo.com.br [lpc2000]" in LPC20005 years ago 1 reply

Hello Guys,I'm having some problems trying to install a UART0 IRQ interrupt on a LPC2138 target using IAR Workbench. Can anyone help me with...

Hello Guys,I'm having some problems trying to install a UART0 IRQ interrupt on a LPC2138 target using IAR Workbench. Can anyone help me with this?I'm want to install the UART0 RDA (Receive Data Available) interrupt, with the highest priority. The codes I'm using are: - Defines:   #define VIC_SIZE          32    #define VIC_BASE_ADDR     ((uint32)&VICIRQStatus)   #define VE...


Lpc2368 - uart0 - isp mode

Started by fred_pfe in LPC200013 years ago 1 reply

Hi everybody I am a french student (sorry for my english) and I have a student's project with a Lpc2368. I would can upload the code program...

Hi everybody I am a french student (sorry for my english) and I have a student's project with a Lpc2368. I would can upload the code program (version 1.1, 1.2 etc...)writting in the flash memory with my bootloader. With the datasheet, I understand that the pin P2.10 must be in low level during the reset to enter in ISP mode. I shoul use uart0 to receive my data commin from the serial p...


uart0 is not working when PLL enabled

Started by "NAGARAJU R." in LPC200012 years ago

hi, I am using lpc2138,with 14.7456Mhz quartz freq directly, every thing works fine, but to day I have implemented the PLL to increase...

hi, I am using lpc2138,with 14.7456Mhz quartz freq directly, every thing works fine, but to day I have implemented the PLL to increase CCLK to 60Mhz. the routine is shown below plz just go through it. but my uart0 is not working. void PLL_ON ( unsigned int baud ) //desired baudrate(9600) as argument { PLLCFG = 0x23 ;//multiplyer=4-1,divider=2 PLLCON = 0x01...


UART1 problems

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


UART0 and UART1

Started by Mukund Deshmukh in LPC200013 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/


Serial Port Interrupt

Started by jamesasteres in LPC200015 years ago 5 replies

In using the serial port (UART0) I found that simply enabling the THRE interrupt does not cause an interrupt to be asserted. ...

In using the serial port (UART0) I found that simply enabling the THRE interrupt does not cause an interrupt to be asserted. Apparently only when the TX FIFO transistions to empty does the interrupt get asserted. I know the VIC and UART0 hardware are set- up correctly since


Re: To recieve block of data

Started by Mukund Deshmukh in LPC200012 years ago

> First of all i thanku for giving me a reply,now we can come to the topic. > RBR of UART in LPC2129 can recieve only 1 byte at a time....what...

> First of all i thanku for giving me a reply,now we can come to the topic. > RBR of UART in LPC2129 can recieve only 1 byte at a time....what should i > do if the UART0 is recieving 22 bytes at a > time(suppose UART0 recieves > data from a RFID tag which contains 22 characters)..... > If you know plz tell me....i am a little bit confused...... > Thanku..i expect a fast reply as early...... If ba


Code examples from TinyARM

Started by tinyarmdev in LPC200015 years ago 6 replies

We have added code samples to File section: 1. S1.zip - trivial blinking LED example 2. S2.zip - trivial UART0 example -...

We have added code samples to File section: 1. S1.zip - trivial blinking LED example 2. S2.zip - trivial UART0 example - receives chars and send them back to UART0 3. S3.zip - nontrivial example - interfacing I2C graphic LCD from EM Microelectronics, type 903.02281. It i


LPC2294 UART0 (interrupt driven) ARTXv2.0

Started by bahadir_armagan in LPC200012 years ago 2 replies

Hi All, I'm running ARTX kernel and I want to use UART0 to send some data. When I call putchar() it sends the first char and system hangs....

Hi All, I'm running ARTX kernel and I want to use UART0 to send some data. When I call putchar() it sends the first char and system hangs. U0IIR says interrupt pending (bit0=0) and this is THRE interrupt (U0IIR=0xC2). Program does not executes after calling putchar(). Please help, Here is the init, putchar and interrupt vector from serial.c (It was originally for UART1 and I modified it to ...


LPC2468 UART0 corrupt data

Started by willemshenk in LPC200011 years ago 2 replies

Hello, Currently I'm working with the LPC-E2468 development board from Olimex. When I configure UART0 to keep printing "Hello World!", I...

Hello, Currently I'm working with the LPC-E2468 development board from Olimex. When I configure UART0 to keep printing "Hello World!", I keep receiving garbage, until I send a character from the terminal. Some characters work, some don't. For example: "a" and "esc" and "enter" work fine, but if I send a "b", I keep receiving garbage. Once I have send the first character, and it's the wrong...


Configuring GPIO on lpc2468

Started by khader_s_s in LPC200012 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 LPC200014 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


lpc1751 uart

Started by archaiwy in LPC20009 years ago 2 replies

is there somebody using lpc1751 mcu? I have made uart0/1 work. but the uart2/3 do not. nxp's manual says uart0/2/3 are alike. is it real. why do...

is there somebody using lpc1751 mcu? I have made uart0/1 work. but the uart2/3 do not. nxp's manual says uart0/2/3 are alike. is it real. why do they not work. Help me to check the initial piece. void uart_init(void) { LPC_PINCON-> PINSEL0 &= ~(0xf); // 3 LPC_PINCON-> PINSEL0 |= (0xa); // 3 LPC_PINCON-> PINSEL1 |= (0xf <