This program will kill your mbed LPC1114FN28. Don't set dp23 as DigitalOut!! Don't run this program.
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/#
main.cpp
- Committer:
- kenjiArai
- Date:
- 2014-07-26
- Revision:
- 0:a18f5223f8a6
- Child:
- 1:bf73d036c0de
File content as of revision 0:a18f5223f8a6:
/* * 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)!!!