STM32L073RZ microsecond Delay
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-04-23 6:23 AM
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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-04-23 9:11 AM
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..
Up vote any posts that you find helpful, it shows what's working..
