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.
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.
Retrieving data ...