Experiment No.1 LED FLASHING #include<reg51.h> #define Del 3000 sfr LED_PORT2=0xA0; void delay(unsigned int x) { unsigned int i,j; for(i=0;i<=x;i++) for(j=0;j<=100;j++); } void main(void) { while(1) { LED_PORT2=0xff; delay(Del); LED_PORT2=0x00; delay(Del); } } Experiment No.1 //BCD Counter on PORT 1 BCD COUNTER #include<reg51.h> #define Del 2000 void delay(unsigned int x) // delay function { unsigned int i,j; for(i=0;i<x;i++) for(j=0;j<=100;j++); } void main(void) { unsigned char count[10]={0xff,0xfe,0xfd,0xfc,0xfb,0xfa,0xf9,0xf8,0xf7,0xf6}; unsigned int x; P1=0x00; while(1) { for(x=0;x<