
while(P0^7==1);
     TR1=1;
     while(P0^7==0);
     TR1=0;