cancel
Showing results for 
Search instead for 
Did you mean: 

what is the best way to generate a 200ns Delay

manoritesameer
Associate II
Posted on May 02, 2014 at 21:50

hello 

      I am using the STM32F407 discovery board,what is the best way to generate a 200ns Delay or less.

Thanks
1 REPLY 1
Posted on May 02, 2014 at 22:34

Try to do it in hardware.

Fixed instruction sequences can be unpredictable via FLASH/ART

You could spin in a loop counting ticks from DWT_CYCCNT, has a granularity of the CPU clock, but still overhead coming in/out and loop iterations.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..