EmbeddedRelated.com
The 2024 Embedded Online Conference

SSP LPC2148

Started by mgiaco82 in LPC200017 years ago 5 replies

Hello I have some questions concerning the SSP on the LPC2148. I need to speak with one ADC and one DAC. So therefore I need 2 slave...

Hello I have some questions concerning the SSP on the LPC2148. I need to speak with one ADC and one DAC. So therefore I need 2 slave select pins. But the LPC has only one. I know that I can use a normal GPIO for slave select, but I want to use the FIFO for TX and RX. Let me explain. When I speak to the ADC (8Ch x 16Bit) I need to write 8 word commands one for each CH. After each command th...


lpc2387 uart2 problem

Started by "sum...@yahoo.com [lpc2000]" in LPC20009 years ago 1 reply

below is my UART2 code is not working please suggest me what I am missing PCONP |= 1 <

below is my UART2 code is not working please suggest me what I am missing PCONP |= 1 <


LPC23xx UARTx CTI interrupt problem

Started by Ilian in LPC200017 years ago 2 replies

Hi, I'm using UART2 on my LPC2368 board to receive data from other device. I note that sometimes uart is blocking. The CTI interrupt is...

Hi, I'm using UART2 on my LPC2368 board to receive data from other device. I note that sometimes uart is blocking. The CTI interrupt is always assetred LSR register indicate there is no data in FIFO (i.e. RDR bit = 0) and the interrutp can not be cleared (read from UxRBR). And this crash my system. I investigate problem and I've found this is general BUG in LPC and in ARM. There is a prob...


FTDI chip interface problem with LPC2194 microcontroller

Started by vishal_arora82 in LPC200017 years ago 6 replies

Dear Fellow Members, I am not quite sure that is it the good to post this question here in this forum. But I have no other choice. I am...

Dear Fellow Members, I am not quite sure that is it the good to post this question here in this forum. But I have no other choice. I am working on a project implementing FIFO interface between ftdi USB chip (ft245bm) and LPC2194. I am using I/O Port 1 of LPC2194 for databus and I/O Port0 for control bus. I hope anyone of you might have worked on ftdi chips Now I am really stuck on a v...


FreeRTOS and high speed UARTs of LPC210x

Started by stevec in LPC200013 years ago 1 reply

Testing FreeRTOS on LPC2106 with both UART channels outputting at 115K baud. I'm using the transmit FIFOs, so the interrupt rate is 1/16th what...

Testing FreeRTOS on LPC2106 with both UART channels outputting at 115K baud. I'm using the transmit FIFOs, so the interrupt rate is 1/16th what it would be without FIFOs (I'm amazed at how rarely I see sample code using the FIFO or using it such that it cannot do its purpose). The issue and question is: I'm using the FreeRTOS message queue to service the transmit UARTs. With message queues o...


RS-485 direction switching with LPC2138/2148

Started by tilmannreh in LPC200014 years ago 10 replies

Hello, I have designed a board with the LPC2148 that has RS-232 and RS-485 interfaces as jumper-selectable alternatives. When it comes to...

Hello, I have designed a board with the LPC2148 that has RS-232 and RS-485 interfaces as jumper-selectable alternatives. When it comes to switching the RS-485 transmitter enable, a problem arises. Even if I don't make use of the transmit FIFO and so the THRE status is somewhat delayed, the interrupt by THRE occurs too early for correct direction switching: the stop bit is cut off, so it's no...


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


Re: LPC2000 UART drops characters silently?

Started by jayasooriah in LPC200018 years ago 48 replies

System is LPC2292; XTAL = 14.7456 MHz; PLL disabled; MAM disabled; VPBDIV = 1; UART = 8-data, 1-stop, no-parity, FIFO enabled. Symptom are...

System is LPC2292; XTAL = 14.7456 MHz; PLL disabled; MAM disabled; VPBDIV = 1; UART = 8-data, 1-stop, no-parity, FIFO enabled. Symptom are that for certain (low) baud rates, UART silently drops characters on Rx channel when saturated. There is no indication of this in the LSR and none of the error bits (OE|PE|FE|BI|RXFE) are set when this happens. It appears that UART logic is failing t...


SSP as SPI Slave (LPC2148) strange behaviour

Started by xyphro4 in LPC200017 years ago 3 replies

Hello! I'm currently trying to use the SSP of an LPC2148 as SPI Slave. I set it up with theese values: [code] PINSEL1 = 0x000002A8; ...

Hello! I'm currently trying to use the SSP of an LPC2148 as SPI Slave. I set it up with theese values: [code] PINSEL1 = 0x000002A8; SSPCR0 = 0x0007; // selects CPHA=0, CPOL=0 and 8 Bit width SSPCR1 = 0x0006; // SSP enabled as Slave [/code] I receive data using polling with this small function: [code] while (1) { if (SSPSR & (1<<2)) // If SSP-RX FIFO is NOT e


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


LPC2468 MCI rx fifo overruns when using both GPDMA channels

Started by lpc2xxx in LPC200016 years ago 3 replies

Hi I'm using an Embedded Artists LPC2468 board for development. Part of my application requires a large amount of data (e.g. 1GB) to be read...

Hi I'm using an Embedded Artists LPC2468 board for development. Part of my application requires a large amount of data (e.g. 1GB) to be read from SD card, processed and written to an external hi-speed USB interface. I buffer data in external SDRAM. CCLK is 48MHz. MCLK is 24MHz. I use 4-bit mode for the SD Card (i.e. 96MHz bandwidth). MCI uses GPDMA channel 0 (high priority). External...



The 2024 Embedded Online Conference