Here are some screenshots from my DSO showing the timing for various signals. 1uSec, 10uSec, 100uSec, 1mSec delays. And how accurate it actually is. The DWT delay has shown similar results to the timer functions, they are nearly identical. However, the timer delay is much accurate at the low-end very short 1uSec delay. But all in all, it’s as good as it can be.
Thanks the response, from "precise measurement" I mean precise or more accurate than then using millis() function of the arduino.
Here i don't understand if the counts for 1ms are 11198 then it should be roughly multiples of 5,10, and 50 for 5ms, 10ms and 50ms.
@hussain123 , your topic has been moved to a more suitable location on the forum. Introductory Tutorials is not for questions. Feel free to write a tutorial once you have mastered your problem
DWT is supposed to run at the CPU clock rate.
But I believe that the Nordic chips might put the cpu in low power modes during “delay”, which adds both jitter and maybe stops the cpu clock. Or something.