Sunday, 26 June 2011

//program to off all the LEDs one by one then glow all the LEDs one by one


//program to off all the LEDs one by one then glow all the LEDs one by one
//Target board s/n 102011
//Manufacturer Technophilia

#include "reg51.h" // header file for 8051 series of microcontroller
#include "delay.h" //header file for generating time delay

void main()
 {
  while(1)
   {
p20=0;
delay(1000);
p21=0;
delay(1000);
p22=0;
delay(1000);
p23=0;
delay(1000);

    p20=1;
delay(1000);
p21=1;
delay(1000);
p22=1;
delay(1000);
p23=1;
delay(1000);    
   }
 }

No comments:

Post a Comment