Getting started on LPC11U14?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Getting started on LPC11U14?

2,439件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bubba on Thu Aug 16 10:12:01 MST 2012
Hi,
This is my first week with my LPCXpresso LPC11U14 and it's been very frustrating. I've used the Arduino and AVR platforms before, but nothing as complex and unintuitive as ARM! :\

I've tried to use the example projects on NXP's website, but they are all for the LPC1114 (without USB). Furthermore, all the code in the /drivers directory seems to be specific to the LPC1114. And the example code is really complex, without any documentation or tutorials.

How can I get started with a example code and a nice library of drivers for my LPC11U14?

Also, I'm trying to make a program that uses SPI (or SSP?) to connect to an ADXL345 accelerometer and get position data from its registers (following Sparkfun's Arduino program example). Where can I find a simple SPI example? (I already tried to parse through the behemoth example code on the NXP site that isn't even for my board)

Thanks for the help in advance!
0 件の賞賛
返信
8 返答(返信)

2,330件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nasib on Thu Nov 29 05:00:02 MST 2012
thank you so so much!
0 件の賞賛
返信

2,330件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Thu Nov 29 04:55:50 MST 2012
In that case Tsuneo is the right person to point you in the right direction.
You need to understand one of the USB libraries so that you can use the USB as a HID or CDC interface. Maybe you could have a look at http://www.lpcware.com or even better http://www.lpcware.com/forums/peripherals-forums/usb
0 件の賞賛
返信

2,330件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nasib on Thu Nov 29 04:49:06 MST 2012
thaks for the answer!

But i have the lpcxpresso 11U14 board and i just want to send a byte to the PC.
I've seen the example codes to use the board like a HID device, but they are so dificult.
I already programed simple examples like blink a led, read a digital sensor etc...
but now i really need to send information through USB and i don`t know where i can find some examples.

i need your help.

thank you !
0 件の賞賛
返信

2,330件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Thu Nov 29 04:40:04 MST 2012
Like Frame said in his post. Start with the blinky sample (lets just blink a led) and build from there. Then add a switch to toggle a led...
For communications between your MCU and a pc you need to study the user manual for the system clock (since all communications need the system clock) and the peripheral you want to use for communication with the pc like UART or USB. For UART you need to build a small converter with for example an FTDI chip (to convert the serial communications to USB) or a MAX232 to get the right voltage levels for that kind of interface. Zero has some nice pics of these converters, if you search this forum you will certainly find them.

Anyway you will need to read the user manual really well and over and over again.

So why on earth starting with difficult things if you just start developing for LPC ARM Cortex MCU's? It is the right way to become frustrated at least.
First try to walk... running comes later.
0 件の賞賛
返信

2,330件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nasib on Thu Nov 29 04:29:12 MST 2012
Hi!I have a similar problem. I'm so frustrated with this stuff. Anyone know how to communicate (send just a byte for example) from the lpc11U14 to the PC??

I've downloaded all the examples linked in the web, but all of them are so dificult.

could anyone help me!

thank you very much!
0 件の賞賛
返信

2,330件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frame on Fri Aug 17 00:15:03 MST 2012

Quote:
Also, I'm trying to make a program that uses SPI (or SSP?) to connect to  an ADXL345 accelerometer
and get position data from its registers  (following Sparkfun's Arduino program example).

No wonder you have a unpleasant experience. Start with unknown code, using a new toolchain
with a new controller is a sure recipe for frustration.

I suggest to start with the most simple example you can find, something like Blinky.
Even professionals do it this way. Once you got the toolchain and debugger up and running,
you can tackle your project. This probably involves studying the controller datasheet.
0 件の賞賛
返信

2,330件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bubba on Thu Aug 16 14:17:11 MST 2012
What LPC11U14 examples do you mean? I downloaded the CMSIS Library for LPC11Uxx V2 and the LPCXpresso Systick and USB HID Example Projects for LPC11U14 V1.0 from the LPCXpresso support page. These compile and debug properly, but they don't have SPI.

I also downloaded the LPCXpresso Example Projects for LPC1114/302 V2.0 and tried to run the example SSP project, but it did not run on my LPC11U14, even after changing the MCU C/C++ Build Settings in Red Suite.
0 件の賞賛
返信

2,330件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Thu Aug 16 13:47:10 MST 2012
So why don't you download the LPC11U14 examples?
0 件の賞賛
返信