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 in C using P89c51RD2HBP

How to calculate the exact delay without the use of the timer?

For example if i want a 10ms delay, i need to achieve this delay using the for loop not with help of the in built timer.

Is there any formula or calculation to do the delay?

I dont know how to get it. I am using P89c51RD2HBP microcontroller.

Currently i am using a random delay which is worst case delay.

Anybody can say how to do the correct delay using the loop method.

Parents
  • thanks "Mr language" I agree.

    However, my problem with including 'reliably' is that it seems to be one of those where someone will "prove" by "testing" that it is 'reliable' and then happily sit back till the crash happens.

    No, Gentlemen, I am not posting that you are stupid, just that everyone want to read what he wants which is human.

    Erik

Reply
  • thanks "Mr language" I agree.

    However, my problem with including 'reliably' is that it seems to be one of those where someone will "prove" by "testing" that it is 'reliable' and then happily sit back till the crash happens.

    No, Gentlemen, I am not posting that you are stupid, just that everyone want to read what he wants which is human.

    Erik

Children
No data