void delay(void)
{
   unsigned int x;
 for(x=0;x<5000;x++);
}
void delay2(unsigned int time)
{unsigned int x;
 for(x=0;x<time;x++);
}