Can anybody explain this delay function?? void Delay(void){unsigned long volatile time; time = 727240*200/91; // 0.1sec while(time){ time--;
no. it looks like rubbish. it is clearly trying to determine the required count to produce an accurate delay but it's an extremely bad way to do it. even the nerdy experts might agree with me on that.
then,can you explain how to give 100ms delay in Tiva launchpad??
Yes. Configure a timer. Use the timer.
Timer is the best solution here and I know who can configure it for your needs: mootools.net/.../lisablack - she has enough experience to help it.