LPC800-Mini-Kit

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

LPC800-Mini-Kit

1,583 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dilberto on Sun Dec 29 11:26:20 MST 2013
Hi, NxP guys !
As a self-confessed fan of NxP, I have using LPC21, LPC23, LPC11 and LPC12 families and now, started to play with the awesome LPC800.
Recently, I was awarded with the LPC800-Mini-Kit, which I'm using to learn some tricks about this part. Nice board.
But I'd like to suggest, in future releases of the LPC800-Mini-Kit, to change the LED driving pin from pin 4 ( SWDIO / PIO0_2 / TMS ) to pin 5 ( ISP invoke / PIO0_1 / ACMP_I2 / CLKIN / TDI ). The way hardware is presently wired precludes use of LED and Serial Wire Debugger simultaneously. The wiring here suggested, in addition to release SWDIO for debugging, doesn't  preclude ISP, since ISP pin is needed only at startup. Of course, in order to match the current capacity of the LPC810, a small transistor must be used to drive the LED, with a high resistor at its base, so we can drive the LPC800 ISP pin safely to GND via this high resistor.
   And, as a bonus, you'll have a visual indication of pressing ISP key. :-)
Labels (1)
0 Kudos
Reply
7 Replies

1,511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dilberto on Thu Feb 27 05:27:38 MST 2014
Also, using 99999999 as a delay loop counter will give you near 50 s ( yes, fifty seconds! ) as a loop delay on a LPC810 running at 24 MHz (CPU clock). If you are running at a lower clock frequency, the delay time is even bigger.
0 Kudos
Reply

1,511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Wed Feb 26 06:29:40 MST 2014

Quote: murtaza_ka

LPC_GPIO_PORT->CLR0|=(1<<2); //Turn LED on
LPC_GPIO_PORT->SET0|=(1<<2); //Turn LED off



This is not correct, you need to use a simple assignment:
LPC_GPIO_PORT->CLR0 = (1<<2);
LPC_GPIO_PORT->SET0 = (1<<2);

0 Kudos
Reply

1,511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by murtaza_ka on Tue Feb 25 23:31:18 MST 2014
Hello
       I need some help on the Blinky program that I've written for LPC800 mini kit with LPC810 MCU.
#include "LPC8xx.h"                     // Device header

int main()
{
int i;
LPC_SYSCON->SYSAHBCLKCTRL |=(1 << 7); //Enable clock for Switch Matrix module
LPC_SWM->PINENABLE0|=(1<<3); //Disable SWDIO to free PIO0.2
LPC_SYSCON->SYSAHBCLKCTRL &=!(1 << 7); //Disable clock to switch matrix module
LPC_SYSCON->SYSAHBCLKCTRL |=(1 << 6); //Enable clock to the GPIO module
LPC_GPIO_PORT->DIR0|=(1<<2); //Set PIO0.2 as output
while(1) //Loop forever
{
LPC_GPIO_PORT->CLR0|=(1<<2); //Turn LED on
for(i=0; i<99999999; i++) //Loop for indefinite delay
{
}
LPC_GPIO_PORT->SET0|=(1<<2); //Turn LED off
for(i=0; i<99999999; i++) //Loop for indefinite delay
{
}
}
}

This is my code, which doesn't seem to work. I'm using Keil uVision5 and Flashmagic. Any suggestions?
Thanks,
Murtaza.
0 Kudos
Reply

1,511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nxp_apps on Mon Jan 27 12:14:40 MST 2014
Hi,

Just for your information, if you need to drive more than 4 mA, there are two pins on the DIP 8 package - PIO0_2 and PIO0_3 which have a high level output current of 20 mA (minimum). But as you said, it will be difficult to drive LED with these pins while debugging since there are multiplexed with serial wire pins.

Thanks.

nxp_apps
0 Kudos
Reply

1,511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dilberto on Sun Jan 26 07:56:59 MST 2014
YAS ( Yet Another Suggestion ) :
It would be a good idea add RESET and PIO0_1 ( Bootloader invocation ) pins to J2 connector in order to allow Flash Magic call the bootloader using DTR and RTS and preventing the need to press the buttons ( ISP and RESET ).
What do you think, guys ?
0 Kudos
Reply

1,511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dilberto on Wed Jan 01 16:18:00 MST 2014
Great, Celephicus !
Adding just one resistor to present BOM and ... Done!
.
Have a nice year !
0 Kudos
Reply

1,511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by celephicus on Wed Jan 01 01:28:44 MST 2014
No need for a transistor, use a high efficiency LED that takes less than 4mA and a resistor as a pullup. The output can stand being shorted to ground if you push it whilst the processor is not in reset.

Good idea!
0 Kudos
Reply