EmbDev.net

Forum: ARM programming with GCC/GNU tools Interacting pc and lpc2148


Author: Ranjeeth P t (ranjeeth)
Posted on:

Rate this post
0 useful
not useful
I'm currently doing a project in arm lpc2148 as main project for my 
college.


I want to send certain integer values from pc via serial port to the 
lpc2148.
the arm code is an infinite loop searching for the integer value and the 
value is stored in an array or buffer how should i do that plz help

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
What do you expect? Ready made code where you just have to insert your 
name that solves the task and satisfies your teacher?
Just start and ask more specifically if you run into problems.

Author: Ranjeeth P t (ranjeeth)
Posted on:

Rate this post
0 useful
not useful
i wont say that i want the readymade code. just tell me how to do that
ie communication between pc and arm (sending messages in both direction)

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
The LPC214x controller offers USB and UART interfaces. For a start it's 
much easier to use the LPC's UART. If you PC does not offer a 
serial-port you can use a usb-serial cable available in nearly every 
computer shop.

You need an interface-IC like i.e. a MAX3232 between LPC and PC's 
serial-port. Just look into the schematics of LPC214x evaluation boards 
for hardware-details.

Example-code on reading from/writing to an LPC UART can be found in the 
net (i.e. in the sample-collection fro LPC213x/214x from NXP.com, 
example-code from Bill Knight in the LPC yahoo-group).

Once you are familiar with developing code for the LPC you can start 
using the LPC's USB-interface.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.