Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 10 months ago.
mbed wait
I am using wait_us in my code but its not accurate as wait_us takes int values but my wait is of wait_us(41.665) how can i do that?
Question relating to:
1 Answer
5 years, 10 months ago.
Hi Aman,
Have a look at this forum thread: https://os.mbed.com/forum/bugs-suggestions/topic/3464/?page=1#comment-17862
Specifically Alexan's comment should help you.
Please let me know if you have any questions!
- Jenny, team Mbed
If this solved your question, please make sure to click the "Thanks" link below!
Hi Aman,
Is there a reason why you can't just round up and wait for 42 nanoseconds? I don't know if the timers can physically support that kind of granularity (picoseconds).
posted by Russell Bateman 28 Jun 2018I cant because I am designing a signal and it should be accurate and i think its possible because it could be done using clock cycle of 96mhz
posted by aman chawla 28 Jun 2018and i am stuck on how to convert the resolution to ns
posted by aman chawla 28 Jun 2018