void main()
{
uchar T_Count = 0;
P0 = 0xfe;
P2 = 0xfe;
TMOD = 0x10;//???1??1
TH1 = (65535-50000)/256;
TL1 = (65535-50000)%256;
TR1 = 1;
while(1)
{
if(TF1== 1)
{
TF1 = 0;
TH1 = (65535-50000)/256;
TL1 = (65535-50000)%256;
if(++T_Count == 1200)
{
P0 = _crol_(P0,1);
P2 = _crol_(P2,1);
T_Count = 0;
}
}
}front_run();
while(1)
{ |