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.
10 years, 6 months ago.
can you set a timer using nanoseconds?
can the timer be set to use nanoseconds
Question relating to:
1 Answer
10 years, 6 months ago.
If you directly use the hardware I assume you can get timers to run at full clock speed (84MHz). Although I don't have the nucleo platform myself, on some platforms they only reach half the clock speed. But really nanosecond resolution? No.
For sure you should be using input capture pins with timers if you want such resolution (and then i mean sub-microsecond, you aren't going to reach nanosecond resolution with a microcontroller), and the mbed lib does not support that, so you have to program it yourself.