This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to implement accurate milisecond function

I am new to nrf51822. I am trying to convert my Arduino code into NRF51822

I need something like this

currentMillis = micros(); //microseconds since the Arduino board began running if(currentMillis-past_time>=1000) { do something }

What is the best way to do this in NRF51822? Should I use RTC or go with simple timer? Can anyone share their function if they have already implemented?

Thanks