/*
Codul aprinde si stinge led-urile la un interval de 1 secunda.
*/

#include <reg51.h>	   

void Delay10ms(unsigned int);   

void main()
{ 
	while(1)
	{
		P2  = 0x00;    	
		Delay10ms(100); 	
		P2  = 0xff;    
		Delay10ms(100); 	
	}

}

void Delay10ms(unsigned int c)   
{
    unsigned char a,b;
    for(;c>0;c--)
        for(b=38;b>0;b--)
            for(a=130;a>0;a--);
}










