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 for 8051

Hi,

I am having a problem to create a delay. I want to create a delay without using a timer. I am using 11.0592 MhZ. I googled and found some, but it doesn't work. For example:

void MSDelay(unsigned int value)
{ unsigned int x,y; for(x=0;x<value;x++); for(y=0;y<1275;y++);
}

There is something wrong with this. Please help me. I really need it.

Thanks!

Parents Reply Children
No data