#include<reg52.h>
unsigned char i ;
unsigned char led;
unsigned char temp;
#include<intrins.h>
void main(void)
{
temp=0xfe;
P1=temp;
TH0=(65535-50000)/256;
TL0=(65535-50000)%256;
ET0=1;
EA=1;
TR0=1;
}
void insteat() interrupt 1
{
i++;
TH0=(65535-50000)/256;
TL0=(65535-50000)%256;
if(i==10)
{
i=0;
temp=_crol_(temp,1);
}
}