LPCExpresso newbie

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPCExpresso newbie

1,632 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LPC_guy on Wed Aug 25 13:08:14 MST 2010
Hi Guys,

I am moving from AVR to ARM. I bought a  LPCXPRESSO LPC1343 board. I have installed the LPCExpresso IDE from Code red.

I would like to run the blinky.c that comes in the LPCExpresso1343_blinky library.

It looks like the LPCEXpresso board has to be populated with components.

Where on the LPC board do I add the LED?

How can I program the LPC1343 on the Expresso board?

Are there any schematics for the board?

Are there any manuals/tutorials that can explain a step by step procedure on how to run the blinky led code on the LPCExpresso board? I started out with the AVR STK500 kit and it had really good documentation on how to get the "hello world" of hardware i.e. blinky LED.

Thanks for your help and patience.
0 项奖励
回复
7 回复数

1,548 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sat Aug 28 01:12:29 MST 2010

Quote: LPC_guy

However, I am looking for a manual that explains the LPC Xpresso specific commands like:

 
SystemCoreClock/LPC_SYSCON->SYSAHBCLKDIV
LPC_TMR16B0->IR, etc
What are the LPC_ commands? Are they specific to the Xpresso board or the LPC1343? Where can I get info. on this? [SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]
[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]



The LPCXpresso examples make use of the "Cortex Microcontroller Software Interface Standard". That is basically what the LPC_ commands you reference are.

For more information, take a look at the knowledgebase entry "Support for CMSIS"

http://lpcxpresso.code-red-tech.com/LPCXpresso/node/21
[login required]

Regards,
CodeRedSupport.
0 项奖励
回复

1,548 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Fri Aug 27 18:56:40 MST 2010
Hello,

Someone already made a similar question, see:
http://knowledgebase.nxp.com/showthread.php?t=202

Usually the "Commands" are variables or registers.

In LPCXpresso is an example for ADC.

Try to explore the product, like a new toy.
0 项奖励
回复

1,548 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LPC_guy on Fri Aug 27 16:31:45 MST 2010
Thanks for the info. I am looking at the tutorials.

However, I am looking for a manual that explains the LPC Xpresso specific commands like:

 
SystemCoreClock/LPC_SYSCON->SYSAHBCLKDIV
LPC_TMR16B0->IR, etc


What are the LPC_ commands? Are they specific to the Xpresso board or the LPC1343? Where can I get info. on this?

I wanted to select ADC0 and work with the ADC.
Are there any good tutorials for that?[SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]
[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]
0 项奖励
回复

1,548 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Aug 26 01:49:28 MST 2010
I would suggest studying some of the other examples for hints and tips on how to actually program the LPC1343.

In the [I]<install_dir>[/I]\Examples\NXP\LPC1000\LPC13xx directory, you will find two main zip files of examples:

[LIST]
[*][B]LPCXpresso1343.zip[/B] - contains some examples that can be run just using a "bare" LPCXpresso1343 board. Most of these are varieties of flashing LEDs via GPIO using various timers.
[*][B]1343examples.zip [/B]- contains more extensive examples covering most if not all of the peripherals include on the MCU. NXP periodically make updated versions of this available from http://ics.nxp.com/support/lpcxpresso/. For more details see the text file in the '_LPCXpresso1343_readme' project within this zip.
[/LIST]
[Note the names of these zip files may vary depending upon what version of LPCXpresso you have installed, the above are the names in version 3.4.6].

If you have access to an LPCXpresso baseboard, then Embedded Artists have some additional examples available from the Support area of their website at http://www.embeddedartists.com (login required).

Regards,
CodeRedSupport
0 项奖励
回复

1,548 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LPC_guy on Wed Aug 25 20:25:03 MST 2010
Thanks for the info, guys.

I got the blinky LED working.

I would like to start writing my own programs now.

Is there a programming manual that explains the syntax (like for e.g. C statements that show how to control an I/O port, ADC, etc.) for the LPC1343?

I looked at a lot of information from multiple sites but did not see a programming manual.
0 项奖励
回复

1,548 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Wed Aug 25 13:29:45 MST 2010
Hello,

CodeRed already answered while I pressed the button to respond. :)

Use LPCXpresso is very easy, I did not read the start guide. :)

The hard part is the documentation of the ARM microcontroller.

"Are there any schematics for the board?"

Here is a lot of information:
http://knowledgebase.nxp.com/showthread.php?t=228
0 项奖励
回复

1,548 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Aug 25 13:17:17 MST 2010
I suggest you read the LPCXpresso Getting Started guide which is installed with your product (look in the Help and Guides section of the LPCXPresso group in your Start menu) which has a chapter on Build, download and debug of Blinky.

The board has a single LED, so the blinky will work out of the box.
0 项奖励
回复