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

UART + Timer Issue NRF51

Hi,

I am using the following code to implement a millisecond timer read function. In main, while loop, I do nothing but run a 1ms delay and measure the time in mill second before and after and print the difference with uart over serial terminal. The output I get is 1ms but after every 12 odd readings I get 984ms as output and this continues.

Is this due to the uart or is there some issue with the timer implementation. Would appreciate the help. Thanks.