Hi All !

I'm kinda stuck @ the moment. I have a 12F683 and i need to do a variable delay ranging from 1us to 1000us.

The problem is that at 8Mhz the pauseus can't go as low as 12us.

Does anybody have a asm routine or macro that can be used here ?

Something like :
Code:
Macro delay(time in us)
if time = 1 then
nop
nop
if time = 2 then
nop
nop
nop
nop
if time = 3 then

etc, etc ...
Thanks !