EmbeddedRelated.com
The 2024 Embedded Online Conference

Problem with SPI0 of LPC2138 when sending in 16-bit mode

Started by "lilov.lilo" in LPC200016 years ago 9 replies

Dear all, I have the following problem: I use a LPC2138 MCU, the chip communicates with a SPI based chip (slave), I use the SPI0 of the...

Dear all, I have the following problem: I use a LPC2138 MCU, the chip communicates with a SPI based chip (slave), I use the SPI0 of the MCU for that communication. LPC2138 is master. The problem is that the chip requires 16 bit data transfers, when I set the S0SPCR of the MCU with appropriate data to send 16-bit data per transfer, and start writing data to the S0SPDR, the SPI transfer rea...


Looking for LPC2138 Spi exsample C code

Started by jietxu in LPC200017 years ago 1 reply

Hallo, I use 2 Optische Sensor with ADNS-3060. I looking for LPC2138 Spi exsample C code,I am new hier,I am learning. Thanks

Hallo, I use 2 Optische Sensor with ADNS-3060. I looking for LPC2138 Spi exsample C code,I am new hier,I am learning. Thanks


Erase flash on LPC2138 via JTAG

Started by bmueller38 in LPC200018 years ago 8 replies

Hi everybody... ...another beginners problem. I am unable to communicate with my LPC2138-Board from olimex using the Philips Flash Utility....

Hi everybody... ...another beginners problem. I am unable to communicate with my LPC2138-Board from olimex using the Philips Flash Utility. First it worked well, but now I can't even Read the Chip-ID. I tried a newer version and another program (Flash Magic). All without success. The Board itself seems to be ok since the leds are still blinking after reset. I suppose I somehow corrup...


IAR and programming to Flash...

Started by adrianunderwater in LPC200017 years ago 8 replies

Hello I am currently using IAR worknench to design an application for the lpc2138. At one point in the near future I would like the output...

Hello I am currently using IAR worknench to design an application for the lpc2138. At one point in the near future I would like the output from IAR's assembler to be programmed to the lpc2138 using the ISP fucntions through the serial port. However I can't find where, in IAR, the option to generate uuencode files... Is it there? And if not does that mean I have to find/write a uuenco...


LPC2138, VGA, and SD/MMC

Started by achargis in LPC200019 years ago 13 replies

Has anyone actually managed to use a standard VGA or SVGA monitor with the LPC2138? I've googled myself to death and can't find much on the ...

Has anyone actually managed to use a standard VGA or SVGA monitor with the LPC2138? I've googled myself to death and can't find much on the processor let alone the processor and VGA. I've also looked at uVGA witch is a viable solution to my problem, but if it can be done in the processor itself it would be nice. I've found source and schematics for hooking


Debug problems on LPC2138 with OpenOCD (newbie)

Started by bmueller38 in LPC200018 years ago 6 replies

Hi everybody, I am currently trying to get my first microcontroller-project running. I use a LPC2138 Board from Olimex and the software...

Hi everybody, I am currently trying to get my first microcontroller-project running. I use a LPC2138 Board from Olimex and the software according to the great tutorial of Jim Lynch. My Wiggler is self-soldered. When I try to debug my program with OpenOCD in Eclise, I get the following output: Warning: arm7_9_common.c:741 arm7_9_halt(): target was already halted Info: server.c:62 ad...


lpc2138 usb modem interface

Started by jignesh in LPC200012 years ago 1 reply

hey can anyone help me out with my project. i want to interface a usb modem with lpc2138 via uart0. please provide me with necessary circuit...

hey can anyone help me out with my project. i want to interface a usb modem with lpc2138 via uart0. please provide me with necessary circuit diagrams.. ------------------------------------


How to access to the SPI bus (LPC2138)

Started by pouettagada in LPC200015 years ago 14 replies

Hi everybody, I used a LPC2138 with an OS freeRTOS. I'd like to access to the SPI bus but I don't know how. I'm a beginner on it Could you...

Hi everybody, I used a LPC2138 with an OS freeRTOS. I'd like to access to the SPI bus but I don't know how. I'm a beginner on it Could you tell me how can I do it? Have you some examples? some tutorials? Thank you for your helps ------------------------------------


Problems flashing LPC2138

Started by markevans_1 in LPC200018 years ago 2 replies

Hi I have a LPC2138 soldered onto my own board. I have a USB-serial bridge IC attached to UART0. I am using a 12MHz crystal (I have also ...

Hi I have a LPC2138 soldered onto my own board. I have a USB-serial bridge IC attached to UART0. I am using a 12MHz crystal (I have also tryed 16MHz) I have no 32kHz crystal attached. Using Phillips flash utility I can read device ID: 196389, Boot loader ID: 2.0. I can successfully erase and blank check. However when I attempt to Upload


interfacing zigbee with LPC2138

Started by deepa karthikeyan in LPC200014 years ago 5 replies

Hi.I am doing a project on transmission of ECG signals through wireless modes. I have planned to use zigbee. Is this project possible.I heard...

Hi.I am doing a project on transmission of ECG signals through wireless modes. I have planned to use zigbee. Is this project possible.I heard that LPC2138 microcontroller will support zigbee. Is there any other LPC series which will support zigbee. Pls help me at the earliest. Thanks, Deepa


lpc2138 5V tolerant is not really tolerant!

Started by Gus in LPC200018 years ago 14 replies

On my board I have LPC2138 connected to MAX232 running at 5V. I had problems with UART until I added a 4.7K resistor in series. and the...

On my board I have LPC2138 connected to MAX232 running at 5V. I had problems with UART until I added a 4.7K resistor in series. and the voltage high on it now is 2.3V Are the pins real 5V tolerant? The data sheet says UART RX is 5V tolerant!!! Thanks in advance Gus


Olimex LPC2138

Started by Pavan Kandepet in LPC200016 years ago 11 replies

Hello, Does anybody in this group own a LPC2138 board from Olimex? I want to try out the sample examples presented on their website and...

Hello, Does anybody in this group own a LPC2138 board from Olimex? I want to try out the sample examples presented on their website and I cant seem to find the required header files. If anyone has a simple working code for LED blinking, I would be thankful if i could get the source with the required header files. -thanks -Pavan ____________________________________________...


The size of compilered LWIP?

Started by applehuu in LPC200018 years ago 4 replies

I use LPC2138.I want port us/os-II and Lwip. LPC2138 has 512KB RAM,32KB ROM. Can it run? ------------------------ Yahoo! Groups Sponsor...

I use LPC2138.I want port us/os-II and Lwip. LPC2138 has 512KB RAM,32KB ROM. Can it run? ------------------------ Yahoo! Groups Sponsor --------------------~--> Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/dN_tlB/TM --------------------------------------------------------------------~->


How to use a sleep() function LPC2138

Started by pouettagada in LPC200015 years ago 5 replies

Hi, I'd like to use the sleep() function in my code for a LPC2138. But it seems that this function is not working. (no building of my code...

Hi, I'd like to use the sleep() function in my code for a LPC2138. But it seems that this function is not working. (no building of my code with crossworks) I need it for wait before reading a value from an ADC on the SPI bus. May be I have missing the right library? Can you help me? here is the extract from the source code : tab_write_adc[0]=0x80; // lecture channel 1, setup ...


LPC2138 ISP

Started by Jan Szymanski in LPC200019 years ago 12 replies

I have 2 samples of LPC2138 and built a proto board. I was suprised to find out that Philips ISP programming software doesn't...

I have 2 samples of LPC2138 and built a proto board. I was suprised to find out that Philips ISP programming software doesn't support it. When I read the ID (partID: 196389) I had an error message: device not supported. (Why Flash utility is in LPC213X folder if it doesn't


LPC2148 identifyed as a LPC2138?

Started by tiltedkeyboard in LPC200018 years ago 17 replies

Is it normal for the Philips Flash Utility (2.2.3) to ID a LPC2148 as a LPC2138? I'm using a Olimex LPC-P2148 with a clearly marked and...

Is it normal for the Philips Flash Utility (2.2.3) to ID a LPC2148 as a LPC2138? I'm using a Olimex LPC-P2148 with a clearly marked and correcly identifyed LPC-2148 part (ID 196389). I know that they have equal amount of ROM & RAM, but since the LPC2148 *do exist* in the dropdown box *i assumed* it would be selected. One other thing.


Sinewave Direct Digital Synthesis Example Posted

Started by tkreyche in LPC200019 years ago 3 replies

After getting a great deal of good advice from the group, here's my small contribution: A simple example of how to use the...

After getting a great deal of good advice from the group, here's my small contribution: A simple example of how to use the LPC2138 to create a sine wave using direct digital synthesis (DDS). It was developed for the Keil LPC2138 board and compiler and puts out


LPC2138 Bootloader

Started by thos_fernando in LPC200016 years ago 2 replies

Hello , I was testing out H-JTAG on my LPC2138 system, and loaded one of my working hex files using H-JTAG. I think I must have over written...

Hello , I was testing out H-JTAG on my LPC2138 system, and loaded one of my working hex files using H-JTAG. I think I must have over written the Philips bootloader in the process.Now I cannot flash using the WinARM or philips ISP tool. Is it possible to get the bootloader going again ? I read one thread of klemen_dovrtel on this issue which ended abruptly. Are the bootimage files uploade...


LCD with LPC2138

Started by oldulik in LPC200017 years ago 9 replies

Hello to all, I hope, somebody here will help me. I have a problem with initializing LCD displej connecting to LPC2138. I have a display from...

Hello to all, I hope, somebody here will help me. I have a problem with initializing LCD displej connecting to LPC2138. I have a display from Everboucket, MC16021E8 ? SYL. After connecting 5V, only black squares, after uploading the initialization sequence, its same. I think, that there isnt HW problem, but its SW, but I dont know, where Im doing mistake. Here is my initialization sequence. ...


LPC2138: Strange SSP Behavior

Started by tah2k in LPC200019 years ago 7 replies

I'm writing the driver for the LPC2138 SSP block and I am encountering some strange behavior: First of all, the user manual...

I'm writing the driver for the LPC2138 SSP block and I am encountering some strange behavior: First of all, the user manual states SSPCR1, SSPCPSR, and SSPIMSC are all reset to 0x0 upon powerup. I am finding the following values in these registers after reset:



The 2024 Embedded Online Conference