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

Can I use RTC1?

I've just got up and running with the nRF51 DK. I've had a play with some of the examples, and now I've started on my own project using ble_app_template_s110_pca10028 as a starting point.

The first thing I would like to accomplish is to write some code which allows events to be scheduled for a specified day/hour/minute. The code might look something like...

calendar_set_current(MON, 10, 15); // called once at 10:15am to set the time ... calendar_schedule(TUES, 8, 30, blink_led_callback); // blinks led every tuesday at 8:30am

To do this, I would really like to take control of RTC1. However, it seems RTC1 is already in use by the app_timer module. On first glance, the interface provided by the app_timer module doesn't seem to fit my use case very well.

How much stuff will I break if I never initialize app_timer and instead use RTC1 for my own purposes? Will it affect the S110 soft device at all?

Alternatively, I could try to use the TIMER1 module instead. This will be a little more complicated, as this timer will overflow multiple times during the course of the week. But lets assume I can work around that. What would the power implications be? Does this mean the 16MHz crystal would need to be running all the time where otherwise it might have been able to sleep?

Related