Hello Everyone,
I wants Real Time Clock examples in nRF51 board. Like following link which is implemented on embed microcontroller for nRf51 board.
can any one help me to implement Real Time Clock like above link for Nordic SDK.
Thanks.
Rajneesh
Hello Everyone,
I wants Real Time Clock examples in nRF51 board. Like following link which is implemented on embed microcontroller for nRf51 board.
can any one help me to implement Real Time Clock like above link for Nordic SDK.
Thanks.
Rajneesh
@Rajneesh: What exactly do you want to do with the RTC ? In the example that fjonsson pointed to we use the RTC to toggle and LED on TICK event at 8Hz and a compare event after counting TICK event to 3.
It's a good example on how to use the RTC.
@Hung Bui: I am working on nRF51 and sensors are interface. I wants to save sensors data into flash with current timeStamp. I test with mbed real time clock which is updating UNIX time every second. I wants that kind of thing here.
If you can look into above link in mbed real time clock there are used one API call "attach" which is register interrupt for 1 second.
Thanks in advance if you can help me to implement same kind of thing by using Real Time Counter as above suggested link.
Thanks Rajneesh
We don't have example for real time clock with date and time. You need to implement that on your own. What you see in the RTC example fjonsson pointed to was a TICK event at 8Hz , you can modify the divider to get to 1Hz and then you have TICK every second. You would need to do the counting for date and time on your own. But I guess there is lots of example codes of doing that on the net.
I will do it by my self.
Many thanks.
Hi, Rajneesh, Do you modify the divider to get 1Hz successfully? If yes, can you share how to set the divider to get 1Hz? I tried many ways, the lowest frequency just get 8Hz as example.
Thanks.