Skip to main content
Nagesh A
Visitor II
April 23, 2018
Question

STM32L073RZ microsecond Delay

  • April 23, 2018
  • 1 reply
  • 559 views
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.

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    April 23, 2018
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..