LPC812-MAX Original Sample Code..Where is it?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC812-MAX Original Sample Code..Where is it?

1,440 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lewispaul on Mon Sep 30 20:02:56 MST 2013
I just got my new LPC812-MAX deveopment board, and I'm using LPCXpresso v6.0.2 [Build 151].  I like the demo that came with the board specifically:
- the I2C GPIO extender that is used with SW2 to change the blinking pattern
- the actual blinking pattern, and if they are using timers / interrupts, etc
- really all the code so I can learn

I cannot find the source code that drives the demo that comes with this board.  I want to use it and tweak it, perhaps use the A/D along with the GPIO extender.  I see lots of blinkie programs, but clearly
not this one as I don't see any I2C hookup that services the GPIO extender, and thus services the SW2.

Can anyone point me to the source code of this supplied application?  Thanks in advance.
Labels (1)
10 Replies

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Bingo600 on Fri Oct 04 23:44:36 MST 2013

Quote: wellsk
The LPC812 example packages are up for the MAX-800 board. Blinky is there as well as UART, ACMP, I2C, SCT PWM, and more. But nothing for the IO expander yet (which is on the I2C bus). It might be simple to modify the I2C master example to work with the IO expander.

http://www.lpcware.com/content/nxpfile/lpcopen-platform



I hope the above EA-Demo i ported above , shows some basic I2C IO Expander stuff.
I used the I2C master example as a "primitive base" for the C/CMSIS port

/Bingo
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Fri Oct 04 16:07:52 MST 2013
The LPC812 example packages are up for the MAX-800 board. Blinky is there as well as UART, ACMP, I2C, SCT PWM, and more. But nothing for the IO expander yet (which is on the I2C bus). It might be simple to modify the I2C master example to work with the IO expander.

http://www.lpcware.com/content/nxpfile/lpcopen-platform
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Bingo600 on Fri Oct 04 00:51:06 MST 2013

Quote: lewispaul
Thank you!  I have downloaded this as well as the provided code from the previous reply.  I have done all varieties of Microchip programming for over a decade, but this is my first serious look at anything ARM.  I also looked at your eagle board and appreciate that as well.  I moved that into my Eagle folder for future use as a start.



It's not my repository , i just modified main.c & main.h , to hopefully behave like the EA demo.

Most credit should go to this guy (repos) , or maybe even NXP as it looks like something from lpcopen or NXP CMSIS.
https://github.com/sebseb7/lpc8xx

But it would be so nice if NXP would include exported makefiles from their Xpresso compiler. Now that they have bought CR they ought to be able to take that decision.

But at least the Xpresso compiler is an arm-gcc "lookalike".

I do think that Eclipse should be able to export the projects options in a makefile , or am i mistaken ?.

/Bingo
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lewispaul on Fri Oct 04 00:02:11 MST 2013
Thank you!  I have downloaded this as well as the provided code from the previous reply.  I have done all varieties of Microchip programming for over a decade, but this is my first serious look at anything ARM.  I also looked at your eagle board and appreciate that as well.  I moved that into my Eagle folder for future use as a start.
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Bingo600 on Thu Oct 03 05:10:29 MST 2013
I'm not experienced with the LPC-812 , but i just threw the demo together , using CMSIS i hope.

I have no idea if i got the I2C right , but it responds to the button.

/Bingo
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andersrosvall on Wed Oct 02 04:10:24 MST 2013
Hi Paul,
We have uploaded the demo application on our product page now: http://www.embeddedartists.com/products/lpcxpresso/lpc812_max.php
Check under "Documentation and Resources" section.

Kind Regards,
Anders @ Embedded Artists
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lewispaul on Tue Oct 01 23:02:35 MST 2013
Thanks!  I'll look for it.  I assume it will have some samples of the I/0 port expander using I2C like the provided demo?  Also, I'd like to see some examples of the LEDs pulsating using interrupts and deep sleep modes.
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lewispaul on Tue Oct 01 22:58:15 MST 2013
Thanks, I did find all of that.  One thing of note, unless you want to use the Virtual COM port via USB, then the board changes are not needed.  So, if you wanted to go to a conventional UART / RS232 or similar, follow the schematic as wired.  If you do need to make the change, note they are zero ohm resistors.  So, just clip out the old resistors and use a solder bridge - the pins are close together and should bridge easily.

I'm still searching for that (source code of the) project that shipped with the LPC812-MAX.  Somebody out there that actually helped create the board and providing that sample program maybe is listening????
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Tue Oct 01 13:03:53 MST 2013
We'll have a LPCOpen port available for this board before 10/11/2013. It will be very similar to the current LPCXpresso LPC812 port.
0 Kudos

1,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Raiden on Mon Sep 30 21:22:04 MST 2013
I found the following information on the LPC812 MAX board;
http://www.lpcware.com/lpc800-max (Describes the board)
http://www.embeddedartists.com/products/lpcxpresso/lpc812_max.php (where to buy it)
http://mbed.org/platforms/NXP-LPC800-MAX/ (more specifics on what the board is, spec-wise)
https://mbed.org/handbook/mbed-NXP-LPC800-MAX (even more specifications, including a schematic of the board design)

And in September 4th, 2013. Someone wrote this:
https://mbed.org/handbook/mbed-NXP-LPC800-MAX-Getting-Started

I wish I had known that, I blindly went to lpcware.com/lpcxpresso (like the single piece of paper they ship with the board says), and then wasn't sure what to do next. I wish they'd have given a more helpful link to the getting started guide. That I just found. And having said that, it looks like the guide needs a ton of work.

>Moving forward, they suggest to reorder some parts on the board "If you want to use the mbed interface Virtual COM port there are 2 resistors (0 ohm) that need to be changed on the PCB.". This is not a easy task. It looks like we have two tiny 402 sized resistors that need to be removed, and then reattached in the right place. Why didn't they just use a simple 3-pin header, with a jumper? I'm afraid to pull the pads off if I use too much force/heat.

>When I finally got mine connected to my PC, the flashing RGB led is really BRIGHT. I think I'm partially blind now, lol.

>The upload of the flashing blue led program took about 7 seconds on my 3770k dev station (w/ USB 2.0). That's comparable to what I get when running a Arduino R3 (with their USB <> FTDI serial interface).

Still tinkering with it. At least it seems to work for now.