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

lpc2368 blinker not working

Hi
I programmed my lpc2368 with below code.
but led does not blink (led is just on ).

my Code :

#include <lpc23xx.h>
#define led1 0x200000
#define set_led1 (FIO0SET = led1)
#define clr_led1 (FIO0CLR = led1)

void delay(unsigned long i){ unsigned long j; for(j=0; j<i; j++);
} int main(void){ SCS |= 1; FIO0MASK = 0x00000000; FIO0DIR = 0xFFFFFFFF; FIO0CLR = 0x00000000; while(1){ set_led1; delay(2000000); clr_led1; delay(2000000); }
}