Hello all, 1) can any one help me to write function in keil c51, like " delay(int milli sec)" like in turbo c/c++. 2) for above i want to use present project's crystal value (like variable) in user defined functions how to get that crystal value while writing code in "c". thankyou, PADMANABHAM
"...i have doubt, i will sure the nop will take one mechen cycle, but for while() and other thakes extra time..." You are quite right to have that doubt, and that was precisely the issue discussed in the thread I cited earlier. Have you read the thread I cited earlier? "please give me some example code in c" Read the thread I cited earlier!