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@0:a18f5223f8a6, 2014-07-26 (annotated)
- Committer:
- kenjiArai
- Date:
- Sat Jul 26 22:26:06 2014 +0000
- Revision:
- 0:a18f5223f8a6
- Child:
- 1:bf73d036c0de
Don't run this program on the mbed chip!!!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 0:a18f5223f8a6 | 1 | /* |
kenjiArai | 0:a18f5223f8a6 | 2 | * mbed Application program for the mbed |
kenjiArai | 0:a18f5223f8a6 | 3 | * !!!This is very dangerous program!!! |
kenjiArai | 0:a18f5223f8a6 | 4 | * Just check this source file and don't run on the mbed LPC1114FN28 |
kenjiArai | 0:a18f5223f8a6 | 5 | */ |
kenjiArai | 0:a18f5223f8a6 | 6 | |
kenjiArai | 0:a18f5223f8a6 | 7 | #if 1 |
kenjiArai | 0:a18f5223f8a6 | 8 | #include "mbed.h" |
kenjiArai | 0:a18f5223f8a6 | 9 | |
kenjiArai | 0:a18f5223f8a6 | 10 | #define KILL 1 |
kenjiArai | 0:a18f5223f8a6 | 11 | |
kenjiArai | 0:a18f5223f8a6 | 12 | DigitalOut myled(dp28); // LED for Debug |
kenjiArai | 0:a18f5223f8a6 | 13 | // This is a problem!! dp23 is pin23, PIO0_0 and assigned for RESET. |
kenjiArai | 0:a18f5223f8a6 | 14 | DigitalOut p_die(dp23); // DON'T SET PIN23 OUTPUT MODE |
kenjiArai | 0:a18f5223f8a6 | 15 | |
kenjiArai | 0:a18f5223f8a6 | 16 | int main() { |
kenjiArai | 0:a18f5223f8a6 | 17 | while (true){ |
kenjiArai | 0:a18f5223f8a6 | 18 | wait(1.0); |
kenjiArai | 0:a18f5223f8a6 | 19 | myled = !myled; |
kenjiArai | 0:a18f5223f8a6 | 20 | p_die = KILL; |
kenjiArai | 0:a18f5223f8a6 | 21 | } |
kenjiArai | 0:a18f5223f8a6 | 22 | } |
kenjiArai | 0:a18f5223f8a6 | 23 | #endif |
kenjiArai | 0:a18f5223f8a6 | 24 | |
kenjiArai | 0:a18f5223f8a6 | 25 | #warning "Don't copy binary file into the mbed !!!!! |
kenjiArai | 0:a18f5223f8a6 | 26 | // You CANNOT use the mbed chip after copying bin file into the mbed!!! |
kenjiArai | 0:a18f5223f8a6 | 27 | // You need to change the microprocessor chip (LPC1114FN28)!!! |