This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf_delay is inaccurate

Hi,

i have a problem in my Code, when ic look nrf_delay_us (1000) on the oscilloscope i can se a puls withe 1,3 us thats not accurate enough. What could be a reason for that? What could i had change, that the nrf_delay doesn't work accurate?

And its not because environmental-influence beacause whith an other example it works well.

Best regards Nils

Parents
  • Actually I think this is a bug in nrf_delay_us(). In the Nordic SDK it has 14 NOPs but RFDigital (makers of RFduino) have 11 NOPs in their implementation. It is much more accurate (about 1% out).

    Please can you fix it? It took me ages to find this issue (my application is quite timing sensitive - and yes I am planning to change it to use "proper" timers, but that is a work in progress).

Reply
  • Actually I think this is a bug in nrf_delay_us(). In the Nordic SDK it has 14 NOPs but RFDigital (makers of RFduino) have 11 NOPs in their implementation. It is much more accurate (about 1% out).

    Please can you fix it? It took me ages to find this issue (my application is quite timing sensitive - and yes I am planning to change it to use "proper" timers, but that is a work in progress).

Children
No Data
Related