This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Delay function

Can anybody explain this delay function??
void Delay(void){unsigned long volatile time; time = 727240*200/91; // 0.1sec while(time){ time--;

Parents
  • 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.

Reply
  • 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.

Children