//program to blink the led LED1
//Target board s/n 102011
//Manufacturer Technophilia
#include "reg51.h" //header file for 8051 series of micro controller modified
#include "delay.h" //header file for generating time delay
void main()
{
while(1)
{
p20=1; //on the LED1
delay(1000); //give a time delay of 1000 mili second or 1 second for LED to on
p20=0; //off the LED1
delay(1000); //give a time delay of 1000 mili second or 1 second for LED to off
}
}
No comments:
Post a Comment