Pause 0.1 ?

Screech

Member
How do you create a delay of less then 1 milli second?
I actually want to create 0.1 millisecond delays.

Thanks
 

BeanieBots

Moderator
That might be difficult when you consider that each command takes about 250uS. However, you can make incremental changes of 10uS within a loop by using the pulsout command. It will of course tie up an output as well.
 

womai

Senior Member
I ran into the same issue, and solved it with the pulsout command as described. (Talk about re-inventing the wheel :)

Another option could be to use a 28X or 40X that can be overclocked. If you can live with the few restrictions that overclocking introduces, then running at 16 MHz instead of 4 MHz will reduce a "pause 1" to 0.25ms. Even faster, a "high 0" (or some other pin) takes around 0.06ms according to my measurements.

Wolfgang
 
Top