hi there are lot of delay routines in lot of compilers with knowing the clock frequency... For creating exact delay in a C program without any inbuilt functions you have to work some more. . .
write the
Code C - [expand]
1
for(k=0;k<10;k++);
and decode it as assembly and find how many instructions written for it.. then change the value 10 according to your 1 us...
If you need more accuracy and less work, put a break point on this line and after this line now run and find how many instruction cycles taken for....
Or if you use keil _nop_ () function can give the delay of 1 instruction cycle with this you can create 1 us delay and loop it, but looping nop instruction for 1us is not recommended..