We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
"This sort of code can only be done in assembly."
Or even:
This sort of code can only be reliably done in assembly.
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