i am writing a code(in C language) in which i need a delay of the order of few micro seconds. and this delay is not constant, i.e., i am using a variable and i should get a delay of value equal to that variable and it would be of the order of micro seconds.. the minimum value of that variable is 0.5 and max is 150,i.e., the delay would have to be changing from 0.5 microsec to 150 microsec. the inbuilt functions in the AVR compilers are not giving such short delays. i have no knowledge about keil. can any one suggest me a microcontroller for the delay of this order and also, is there any inbuilt function in keil to give such delays?If yes, then what is it? if not then how to get such delays?