EmbeddedRelated.com
The 2024 Embedded Online Conference

those crazy interrupts (2138)

Started by WadeA & RebeccaM Smith in LPC200015 years ago 44 replies

As soon as I enable the IRQs, pabort occurs. If I comment out U1Initialize() -- no problem. The code for uart1 is the same for uart0, with...

As soon as I enable the IRQs, pabort occurs. If I comment out U1Initialize() -- no problem. The code for uart1 is the same for uart0, with just the names changed to protect the ignorant. Obviously I am missing something. What it is? VIC assignments: * Addr/Cntl 0 = timer0 * Addr/Cntl 1 = i2c (not enabled) * Addr/Cntl 2 = spi (not enabled) * Addr/Cntl 3 = timer1 (not enabled) * Addr...


NGX Technologies Blueboard

Started by leon Heller in LPC200015 years ago 6 replies

NGX Technologies (Bangolore, India) recently sent me one of their new Blueboard LPC2148 systems for review. The main features are: JTAG...

NGX Technologies (Bangolore, India) recently sent me one of their new Blueboard LPC2148 systems for review. The main features are: JTAG Two DB-9 connectors for UART0 and UART1 USB SD-card Audio amplifier and speaker Eight LEDS driven by a 74HC595 Two pushbuttons (and reset) RTC (external battery) 2x16 character LCD module DAC audio output Potentiometer ...


LPC2366: Question about UART interrupt which goes into DAbt_Handler

Started by abracadalba in LPC200016 years ago 12 replies

Hi to everyone, I'm using LPC2366. My question is about an UART interrupt wich goes into DAbt_Handler. More in detail, a part of my projest...

Hi to everyone, I'm using LPC2366. My question is about an UART interrupt wich goes into DAbt_Handler. More in detail, a part of my projest is to receive data through UART2 and to echo the received data to UART1. Both UARTs are configured @600kBaud. After receiving some characters, I see my application crashing. I Use Keil uVision with GCC. Optimization level is 1. Used prototypes ar...


UART transmit problem with GNU

Started by jesperkr123 in LPC200019 years ago 3 replies

Hey I'm trying to get the UART0 and UART1 working on my LPC2124 Olimex board. I use the WINARM GNU toolchain. I've wrote a simple...

Hey I'm trying to get the UART0 and UART1 working on my LPC2124 Olimex board. I use the WINARM GNU toolchain. I've wrote a simple code to test the UART. But when i send a byte to my PC, the received byte is wrong. This is my test program: void SetUART(int baud){ unsigned int divisor = pCF / (16 * baud); PINSEL0 |= 0


VPBDIV register

Started by dodge1955 in LPC200018 years ago 9 replies

Can someone help me with this problem? See the code below. I have UART1 set up to print "Hello Test", but I can't get it to work with a 12Mhz...

Can someone help me with this problem? See the code below. I have UART1 set up to print "Hello Test", but I can't get it to work with a 12Mhz clock, which is what is on the Eval boards. I am using currently the Embedded Artists board with the 12Mhz clock. If I set the U1DLL to 0x61, which is a 15Mhz clock, and leave VPBDIV = 0 (1/4 processor clock) it works fine (as in the code


LPC2148 misses SPI0 interrupts if UART interrupts used

Started by l_marmsater in LPC200018 years ago 4 replies

Hi, Here is a gotcha that may cost you some time to find and resolve. If you are using interrupts to handle SPI0 transfers and UART0 or UART1...

Hi, Here is a gotcha that may cost you some time to find and resolve. If you are using interrupts to handle SPI0 transfers and UART0 or UART1 in an LPC2148, you may find that SPI0 interrupts do not always occur. You typically initialize an SPI transfer from the user level, say transmit the first byte of a buffer, and then let the ISR finish the transfer, until all bytes are shifted out ...


UART0 hyperterminal

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


RS485 9 Bit Comms on LPC2148

Started by mhoneywill in LPC200018 years ago 4 replies

Hi, I'm implementing a comms protocol which requires RS485 half duplex comms with a 9 bit data word for the first byte. I'm new to the...

Hi, I'm implementing a comms protocol which requires RS485 half duplex comms with a 9 bit data word for the first byte. I'm new to the LPC214x chips so was wondering if anyone could give me some pointers. My thoughts are described below. Half Duplex Comms It looks like UART0 and UART1 have both FIFO empty and ShiftRegister empty Flags, IF you enable the THRE in


problem in CAN

Started by harisha eh in LPC200017 years ago 7 replies

hello group, Im using lpc2129 in MCB2100 board.im facing problem in CAN(Controller Area Network) communication in hardware.Actually...

hello group, Im using lpc2129 in MCB2100 board.im facing problem in CAN(Controller Area Network) communication in hardware.Actually i connected two MCB2100 board,im just sending char in hypertermial through UART1(but communication between two board is through CAN only).i connected CANL to CANL & CANH to CANH. Transmission is done through push message function in which ...


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...


auto flow control on LPC2148

Started by Florent MIGNON in LPC200017 years ago 4 replies

Hello, I'm new on lpc and i want to use auto-RTS and auto-cts flow control on uart1 to communicate with a WT12 (bluetooth chip) which is...

Hello, I'm new on lpc and i want to use auto-RTS and auto-cts flow control on uart1 to communicate with a WT12 (bluetooth chip) which is configured to work with hardware flow control. Regarding the lpc documentation, i understand that i just have to put U1MCR = 0xC0 ( no interrupt is is used) to enable auto-flow control. Is that true. Does it work alone after this configuration? When i ...


Att: NXP_Apps EngineersLPC2468 UART1 Auto Baud Rate with Fractional Divider

Started by winbond2 in LPC200015 years ago 3 replies

With Asia closed for Chinese new year.. I have posted the question to this forum to see if other NXP App's engineers or experienced engineers...

With Asia closed for Chinese new year.. I have posted the question to this forum to see if other NXP App's engineers or experienced engineers can offer there suggestions on an Auto baud rate detect problem. We have a LPC2468 running with a Xtal to suit USB operation, hence we need to use the fractional baud rate generator to meet the minimum


lpc 210x Uart1 modem interface

Started by rohan patil in LPC200019 years ago 3 replies

hi i m final year elect. engg student in my project i m interfcing lg cdma phone with lpc 2106 . this cdma phone has data cable which ...

hi i m final year elect. engg student in my project i m interfcing lg cdma phone with lpc 2106 . this cdma phone has data cable which contains rs 232 converter in it. normal rs 232 drivers such as max 3232 gives inverted outputs & modem interface pins of uart 1 are active low so total system works perfectly but i want to remove that rs 232


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...


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 ...


LPC2378 UART 1 problem!!!

Started by DeV in LPC200012 years ago 18 replies

hello all...i own a lpc2378-stk olimex board...im trying to use uart1 to communicate...im having problem in receiving data...wat i want to do...

hello all...i own a lpc2378-stk olimex board...im trying to use uart1 to communicate...im having problem in receiving data...wat i want to do is till valid data is not available the lcd will display "no data"...only wen some data EXCEPT Carriage Return is sent, it will display "data entered"...now once the Carriage Return key is pressed the lcd will display "Carriage Return" till again a new ...


LPC2364 UART3 Issue:

Started by prab...@yahoo.co.in in LPC200014 years ago 13 replies

LPC2364 UART 3Issue: I am using LPC2364 and tested UART0,UART1 with Interrupts. Its working fine.But if i try to test UART3,its not...

LPC2364 UART 3Issue: I am using LPC2364 and tested UART0,UART1 with Interrupts. Its working fine.But if i try to test UART3,its not working(Not receiving data). I have tested UART3 tx part without interrupts based.Its working. But i didn't test RX part without interrupts method.Is there any limitation in LPC2364 uart3 interrupts or RX part. I have also enabled power for UART3 by using PCONP...



The 2024 Embedded Online Conference