How to calculate precise delay in nrf51822 for Timer ?

NANDKISHOR gravatar image

asked 2017-04-21 12:30:50 +0200

i m new in nrf51822 controller so help me for coding of my question. any help will be appriciate. thank you.

edit retag flag offensive close delete report spam



Delay between what? The time from START task is given until timer starts counting is 0.25 µs, and the CLEAR task, COUNT task and the STOP task will guarantee to take effect within one clock cycle.

Is it the drift you want to calculate? The TIMER peripheral is based on the high-frequency clock source (HFCLK), and if you run the HFCLK from the external 16 MHz crystal the drift will be given by the external crystal's ppm (the crystal clock accuracy). Here is an online-calculator you can use to calculate the drift. The formula is: Time Drift in Seconds/Day = ( [ Accuracy in PPM ] / 1 Million ) * ( # Seconds Per Day ). E.g. 10 ppm gives max 0.86 second drift per 24 hours.

Sigurd ( 2017-04-21 15:59:23 +0200 )editconvert to answer