This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

blink led flashing problem/hardware failure??

hi

i'm testing my first project using all in 1 development board eedt6.00 Keiluvision4 and flashmagic.
i use the sample source code:

#include <lpc21xx.h>

void wait (void) { /* wait function */ long d; for (d = 0; d < 10000; d++); /* only to delay for LED flashes */
} int main (void) { unsigned int i; /* LED var */ IODIR1 = 0x00FF0000; /* P1.16..23 defined as Outputs */ while (1) { /* Loop forever */ for (i = 1<<16; i < 1<<23; i <<= 1) { /* Blink LED 0,1,2,3,4,5,6 */ IOSET1 = i; /* Turn on LED */ wait (); /* call wait function */ IOCLR1 = i; /* Turn off LED */ } for (i = 1<<23; i > 1<<16; i >>=1 ) { /* Blink LED 7,6,5,4,3,2,1 */ IOSET1 = i; /* Turn on LED */ wait (); /* call wait function */ IOCLR1 = i; /* Turn off LED */ } }
}

debugging running with succes i see in the pheripals block 1 the io ports being swithched on and off
then i'm creating the hex file i get 0 errors and 0 warnings
in flashmagic i select the correct hex file and start the programming with verrification.
no problems, green and red led blinking. after that flashmagic says finished.
When connecting the 8 pins to the led's i get nothing. after messuring the io ports are 2.2 vdc stationairy. other io port for example port 1.31 reads 3.3 volt ???.

so program run correct in debugging mode, flashing seems all right, on the board led D1 is blinking D12 D16 D17 are lit.

thanks in advance
Thomas Crow

0