You can see a source program for your reference.
But please do not run this program in your mbed board!!
Don't set dp23(nR) pin as DigitalOut!!!
Please also refer following Note.
http://developer.mbed.org/users/kenjiArai/notebook/lpc1114fn28---suggestion-for-improvement/#
Diff: main.cpp
- Revision:
- 0:a18f5223f8a6
- Child:
- 1:bf73d036c0de
diff -r 000000000000 -r a18f5223f8a6 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Jul 26 22:26:06 2014 +0000 @@ -0,0 +1,27 @@ +/* + * mbed Application program for the mbed + * !!!This is very dangerous program!!! + * Just check this source file and don't run on the mbed LPC1114FN28 + */ + +#if 1 +#include "mbed.h" + +#define KILL 1 + +DigitalOut myled(dp28); // LED for Debug +// This is a problem!! dp23 is pin23, PIO0_0 and assigned for RESET. +DigitalOut p_die(dp23); // DON'T SET PIN23 OUTPUT MODE + +int main() { + while (true){ + wait(1.0); + myled = !myled; + p_die = KILL; + } +} +#endif + +#warning "Don't copy binary file into the mbed !!!!! +// You CANNOT use the mbed chip after copying bin file into the mbed!!! +// You need to change the microprocessor chip (LPC1114FN28)!!!