Saturday, 19 September 2015

LED Blinking in ARM7(LPC2129/38)

 #include<lpc21xx.h>
 void delay();
 int main()
 {
  int i;
 IO0DIR=0XFFFFFFFF;

 while(1)
 {
 IO0SET=0XFFFFFFFF;
 delay();
 IO0CLR=0XFFFFFFFF;
 delay();
 }

 }


 void delay()
 {
int i;
 for(i=0;i<1000000;i++);
}

No comments:

Post a Comment