EmbeddedRelated.com
The 2024 Embedded Online Conference

LPC2138 AD converters

Started by Frank van Eijkelenburg in comp.arch.embedded16 years ago 2 replies

Hi, I am using a LPC2138 in my project. From this microcontroller I use both AD converters. The problem I have: channel 6 and 7 from AD0...

Hi, I am using a LPC2138 in my project. From this microcontroller I use both AD converters. The problem I have: channel 6 and 7 from AD0 are not working (I read the value 0 from the ADC). Other channels (0 to 4 of AD0) are working properly. Also AD1 is working properly. I checked the PINSEL registers and these are correct. What could cause the problem? Any ideas TIA, Frank


Uncertain behaviour in ARM microcontroller on reset

Started by abhay in comp.arch.embedded17 years ago 3 replies

hiiiiiiiii, i am interfacing LCD to my ARM microcontroller (PHILIPS LPC2138).i am able to program the LCD ,but it is uncertain. the problem...

hiiiiiiiii, i am interfacing LCD to my ARM microcontroller (PHILIPS LPC2138).i am able to program the LCD ,but it is uncertain. the problem is that when i reset my microcontroller or my development board the LCD is programmed and it displays the messages sent to it but when i reset it again it goes blank and after another reset it works fine again. so LCD gets programmed alternately. ...


External memory with ARM7 philips lpc2138

Started by Xarion in comp.arch.embedded17 years ago 3 replies

Hey everyone What options do i have to interface external memory for my arm7 chip? CF, USB, PSD? Thanx :-) xarion

Hey everyone What options do i have to interface external memory for my arm7 chip? CF, USB, PSD? Thanx :-) xarion


SPI problem - newbie - interfacing between two philips micros

Started by abhay in comp.arch.embedded18 years ago 4 replies

hi all, i m interfacing my philips micro sdk lpc936(slave) wid philips arm micro sdk lpc2138(master).i m sending seven segment pattern thru...

hi all, i m interfacing my philips micro sdk lpc936(slave) wid philips arm micro sdk lpc2138(master).i m sending seven segment pattern thru master .the slave pin SS is connected to one port pin of master thet provides it logic high to select it as slave. do need to check the status of SS pin on slave side periodically between byte transfers? i m doing this wid polling on master side & inte...


LPC2138 timers

Started by Frank van Eijkelenburg in comp.arch.embedded18 years ago 9 replies

I am using a capture pin in combination with a timer of the LPC2138 controller. Each time a rising/falling edge is detected the running timer...

I am using a capture pin in combination with a timer of the LPC2138 controller. Each time a rising/falling edge is detected the running timer value is captured and stored in a CAP register. I am using this method to measure timing between the edges and calculate the frequency of the signal (squarewave). Each time I enter my interrupt service routine I reset the timer (to start a new mea...


Readymade API for downloading .hex to microcontroller

Started by Debabrata in comp.arch.embedded18 years ago 4 replies

Hi I am currently using LPC Flash utility to download .hex file to lpc2138 microcontroller. but I want to make my own software in VC++ to...

Hi I am currently using LPC Flash utility to download .hex file to lpc2138 microcontroller. but I want to make my own software in VC++ to download the hex file. can I include LPC Flash utility in VC++ program in any way.. is there any other source code API, which I can use in VC++ to download the hex file to lpc2138 microcontroller. waiting for replies thanks -debabrata Adya Syst...


How to install system to ARM7TDMI-S?

Started by bsder in comp.arch.embedded18 years ago 4 replies

Hi I found the LPC2138 ARM7TDMI-S from Philips is a very low-cost board can be used as an embedded router. Can anyone tell me how to install...

Hi I found the LPC2138 ARM7TDMI-S from Philips is a very low-cost board can be used as an embedded router. Can anyone tell me how to install Linux or FreeBSD on to this board's Flash memory? http://www.embeddedartists.com/products/boards/lpc2138_100eth.php Thanks Sam


Version errors with Crossworks, ARM-7 target

Started by Anonymous in comp.arch.embedded8 years ago 1 reply

I'm just getting started with ARM. I use protoboards that host an LPC2138 ARM-7. My toolchain is Crossworks / J-link, I've set up a project with...

I'm just getting started with ARM. I use protoboards that host an LPC2138 ARM-7. My toolchain is Crossworks / J-link, I've set up a project with a demo test file that's supplied with the protoboard, a trivial LED flasher in C. It's the only file in the project, and as a supplied demo it will be error-free. The build gives the following errors: Source object ARM flash Debug/crt0 has EABI ve...


ARM FAST GPIO PROBLEM

Started by abhay in comp.arch.embedded17 years ago 10 replies

hi i m working on ARM micro LPC2138 but m unable to initialise or to make work its fast GPIO.i hav configured the settings for fast GPIO in SCS...

hi i m working on ARM micro LPC2138 but m unable to initialise or to make work its fast GPIO.i hav configured the settings for fast GPIO in SCS register but still its not working. i m trying this with simple example to toggle LEDs connected to port pins.however i can do the same wid legacy GPIO registers i want to use the additional features wid fast GPIO. is there any other setting for t...


LPC2138 and linker script

Started by Stan in comp.arch.embedded16 years ago 4 replies

Hi, I want to initialize global variables from ROM, my crt0.s is same as : [...] start: _start: /* select user mode */ mrs r0,...

Hi, I want to initialize global variables from ROM, my crt0.s is same as : [...] start: _start: /* select user mode */ mrs r0, cpsr bic r0, r0, #0x1F /* clear mode flags */ orr r0, r0, #0x10 /* set user mode */ msr cpsr, r0 /* init stack */ ldr sp,_Lstack_end /* copy data */ _Lcopy_data: ldr r0, _Linit_data_start ldr r1, _Ldata_start ldr r2, _Ld...


lpc2138 taking commands merely as a suggestion?

Started by kosta in comp.arch.embedded17 years ago 3 replies

Im working on an embedded project and I'm currently using an Olimex P- Lpc2138 board. After having the device misbehave badly, I decided to...

Im working on an embedded project and I'm currently using an Olimex P- Lpc2138 board. After having the device misbehave badly, I decided to try something simpler - to control the leds on the development board. After seeing what happened, I realized that something is very wrong. Even very simple code which just turns on and off the leds repetitively, doesn't work correctly - sometimes t...


LPC2138 I2C

Started by Frank van Eijkelenburg in comp.arch.embedded16 years ago 3 replies

Hi, I am still using the LPC2138 ;). Now I have a problem with I2C. When I try to send some bytes to an EEPROM device, the following...

Hi, I am still using the LPC2138 ;). Now I have a problem with I2C. When I try to send some bytes to an EEPROM device, the following happens: - I2C start condition is made - interrupt is generated - I2C address is sent - EEPROM device gives an ACK And now nothing happens. If I look at the I2C bus state, the microcontroller accepted the ACK. However, no new interrupt is given due to ...


LPC2138 Flash Write Problem

Started by bm_seo in comp.arch.embedded16 years ago 2 replies

(Apologies if posted twice, couldn't find message) I am trying to get Flash write working on LPC2138 with no sucess. Code is below. Any help...

(Apologies if posted twice, couldn't find message) I am trying to get Flash write working on LPC2138 with no sucess. Code is below. Any help appriciated. typedef void (*IAP)(unsigned int [],unsigned int []); IAP iap_bypointer; void iap_byfunction (unsigned *cmd,unsigned *rslt,unsigned entry); unsigned int command[5]; unsigned int result[5]; char Ram_Arry[512] = "Hello World"; char *...


USB Host Implementation via device hardware

Started by sau_sol in comp.arch.embedded14 years ago 8 replies

Hi all I am currently using LPC2138 for my designs. now I got a similar controller LPC2141 with the additional feature of USB device...

Hi all I am currently using LPC2138 for my designs. now I got a similar controller LPC2141 with the additional feature of USB device controller. Now I want to know is there any way to implement a USB Host firmware by using a USB device hardware. If yes please let me know the method. I want to interface a USB based CDMA modem with the controller, so can I interface the modem with a USB...


Redboot and eCos

Started by vever in comp.arch.embedded13 years ago 4 replies

Hello. I would program an AMR7 LPC2138 with eCos and redboot. But there is not enough RAM to load the program on it. (with a...

Hello. I would program an AMR7 LPC2138 with eCos and redboot. But there is not enough RAM to load the program on it. (with a load command). I wonder if you know if I can directly load my program into flash and start it by redboot from flash. Or if I can load redboot and my program together into flash and make redboot to start the program alone. Thank you very much! Vever ...


I2C code not working for LPC2138

Started by Anonymous in comp.arch.embedded12 years ago

Hi all, I wrote a code to read temperature from an temperature sensor through i2c, but, it is not passing even the start condition and...

Hi all, I wrote a code to read temperature from an temperature sensor through i2c, but, it is not passing even the start condition and becoming infinite loop in the while(I2C1STAT != 0x08); Please review my code & specify if i missed any thing. find the code below. #include #include void mmc_i2c_init() { put_ch('1'); PINSEL0 |


Does ARMs support bytes?

Started by Elder Costa in comp.arch.embedded19 years ago 29 replies

Hi. A question somewhat (or rather) silly: can I manipulate individual bytes with an ARM processor? (LPC213x to be more specific) In other...

Hi. A question somewhat (or rather) silly: can I manipulate individual bytes with an ARM processor? (LPC213x to be more specific) In other words, will the statement: char buffer[16]; occupy 16 8 bit bytes or 16 32 bit words? TIA. Elder.


LPC213x IDE

Started by Anders in comp.arch.embedded18 years ago 15 replies

Friends, For a current LPC213x project we purchased the IAR Embedded Workbench development kit (about $4k if I remember right) with a J-link...

Friends, For a current LPC213x project we purchased the IAR Embedded Workbench development kit (about $4k if I remember right) with a J-link USB-> JTAG. It's "ok", but it doesn't give me that warm and fuzzy feeling of complete trust. The UI behaves funky (resizing toolboxes by itself, suddenly refusing to set breakpoints, etc.), the compiler seems to be a bit buggy sometimes, and the C libr


Maybe OT - ARM software development: Eclipse often hangs

Started by Tilmann Reh in comp.arch.embedded17 years ago

Hello all, I am using the YAGARTO toolchain (Eclipse, GNUARM, OpenOCD) for developing the software for a current LPC213x project (OS: Win XP...

Hello all, I am using the YAGARTO toolchain (Eclipse, GNUARM, OpenOCD) for developing the software for a current LPC213x project (OS: Win XP pro). From time to time, the Eclipse IDE suddenly hangs. This happens when trying to save after some changes have been made to a source file, or when entering debug mode, or at some other circumstances. It does not generally fail, and when I restart...


LPC2148 interface problem with MC35i

Started by bhimanipankaj in comp.arch.embedded18 years ago 8 replies

Dear frends, I have MCB2140 board from KEIL and I want to connect Siemens MC35i GSM modem with the same on COM1 of lpc2148. The port given...

Dear frends, I have MCB2140 board from KEIL and I want to connect Siemens MC35i GSM modem with the same on COM1 of lpc2148. The port given on board is not fully connected as there are only two wires connected Tx and Rx. I want to make a data call to another PC and the at command is ATD Problem is if i m transmitting this at command or say any data from board to PC using seria



The 2024 Embedded Online Conference