cancel
Showing results for 
Search instead for 
Did you mean: 

best way to generate microseconds delay

VPras
Associate II

Hi,

Can anyone recommend the best way to generate microseconds delay??

and how to generate it??

2 REPLIES 2

Use a free running 32-bit TIM or DWT_CYCCNT​

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

Nop loop or lptimer xan get the job done. Actually HAL_Delay should be renamed as HAL_Delay_ms and an example of usec delay should be provided for giving snippets to developpers.