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!
Make x and y volatile, then the code might not be optimized away?