
for ( i = 0; i < 1000; i++) 
{ 
   P1_0 = 0; //OFF 
   P1_0 = 1; //ON 
} 