cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L073RZ microsecond Delay

Nagesh A
Associate
Posted on April 23, 2018 at 15:23

Hello ,I am using STM32L073RZ MCU for my project to generate one microsecond delay for one wire protocol but i am unable to get,Can anyone help me to get microsecond delay and how to set prescalar value and clock period.       

Thank you in advance.

1 REPLY 1
Posted on April 23, 2018 at 18:11

This type of question has been covered dozens of times, please review previous thread topics.

You can't interrupt at these rates, you should use the CNT register of a TIM to observe elapsed time or to benchmark/tune your own routines. Software only loops tend to be distorted by interrupts and compiler optimizations.

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