<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9217/does-nrf51822-have-a-clock</link><description>Hi, 
 I wonder if nrf51822 has a clock inside it.
It doesn&amp;#39;t need to be real clock 
 but It&amp;#39;s important to me.
I store datas on flash and send it to the phone when it&amp;#39;s ready to send. 
 But there is no guarantee that device is alive. so I store its</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Sep 2015 15:11:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9217/does-nrf51822-have-a-clock" /><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34003?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 15:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e9351b7-4ea3-4ecb-b95c-337e6884b9b0</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;Unfotunately yes I&amp;#39;m sure.. It will happen. T.T @Wojtek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34002?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 15:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce25267b-dd09-45f7-b340-fea1067ec0cb</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;Thanks. There is no way to answer right because I didn&amp;#39;t explain everything. but Thanks. @BLEdude&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34001?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 15:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5fa066c-318e-4d56-b073-43c8808c8699</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Maybe a bit different approach - are You sure that it is needed to totally TURN OFF nrf51? It doesn&amp;#39;t draw that much current when in system on... You can measure time using internal RTC then. Also You can monitor your battery by internal ADC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/33996?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 15:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77a6328f-98f8-411d-86e8-b11cdadacb97</guid><dc:creator>BLEdude</dc:creator><description>&lt;p&gt;Ohh I see.  I was unclear as to what time difference you were trying to measure. If trying to see how long the device is off, then yes, I can&amp;#39;t really see any way besides having a dedicated clock.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/33995?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 15:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eabae4ff-41a1-472c-b0cb-6dfe5c9e0cd4</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;If device could not figure out how long it&amp;#39;s turned off itself without phone, this can&amp;#39;t be solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/33994?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 15:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab2ffb5-4ee4-4a6c-adfb-2f99e74b23e2</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;Thanks. but it doesn&amp;#39;t solve this problem because what if device turns off and he turn on again and again and few days later connect to phone? @BLEdude&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/33999?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 14:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f46afb3e-90f3-45b6-a483-64b474deede7</guid><dc:creator>BLEdude</dc:creator><description>&lt;p&gt;Hrmm... Depending on how precise you need to know the time difference, you could create a timer which will save the time every x number of seconds. That way if your device suddenly dies, you will at least have the time within x number of seconds. Hopefully this makes sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/33998?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 14:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37919bf6-23ab-4e37-a5d6-c67f18fb827e</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;@BLEdude  What if device turns off or battery is gone? That&amp;#39;s why I asked you guys. It has to have clock something. I thought it has it of course.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/33997?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 14:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c57cb5d-64e1-4939-a0da-3e64973f576a</guid><dc:creator>BLEdude</dc:creator><description>&lt;p&gt;Maybe instead of sending its last time to the phone, the device can save the time to its persistent storage. And then when it reconnects to the central, it can send the time it saved, and the central can figure out the difference in time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34000?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 14:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:421831c5-80e1-422d-8ad0-c3deba7560c1</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;I think so. Sounds like you&amp;#39;ll need to do what Wojtek said.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34009?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 14:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a7a5e4-757f-4c7a-8bb4-5c5765865a61</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;So, the result is that I need to add some external stuff? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34008?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 14:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23cb6b95-b3a7-432e-8d8d-67c8113a3fec</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;@Michael. Thanks for your help. but as you said little, there is no guarantee that device sends something to phone before it turns off. The phone could be at the outside or could be not connected with device.
So I need to make device to figure out itself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34007?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 14:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efbee705-61b5-4c34-ab90-0871ae7f7d64</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;Maybe you could do something hackish/clever:&lt;/p&gt;
&lt;p&gt;1.) Device sends a flag right before it turns off - the phone now starts keeping track of time.
2.) Device starts keeping track of time once it turns on. After the device connects to the phone it sends the phone a flag with the time elapsed since it turned on. Now the phone knows (almost exactly) how long the device has been off.
3.) This time can then be passed back to the device if needed.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Downfall - any time the device is powered off the phone will need to be keeping track of time - this means that the app will have to run in the background or you will need to do some type of service on the app side.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But this might allow you to avoid another separate clock/power source. There could be other solutions as well&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34006?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 13:53:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95bd301a-f384-461e-a4e5-df05c55ec2fe</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;@Wojtek   do you mean I can&amp;#39;t do what I want with just nrf51822?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34005?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 13:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a7034a-9bf4-432c-b8c2-b319be543359</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Then You need external RTC with independent power source to keep the time counting when nrf51 is not powered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/34004?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 13:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ea0e673-102d-4e9a-aee2-1d5bce126f20</guid><dc:creator>benevbright</dc:creator><description>&lt;p&gt;Hi, Thanks.
What I need is to know difference of time between before and now even if device is turned off.
I don&amp;#39;t want to know what the time is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does nrf51822 have a clock?</title><link>https://devzone.nordicsemi.com/thread/33993?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 13:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f4cc41d-74a1-4866-b0a2-aef16a2869b3</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;The nRF51 has an internal 16 MHz RC oscillator.&lt;/p&gt;
&lt;p&gt;However, if you want to use the RADIO peripheral (you want to use BLE or ANT etc...) then you MUST include an external high frequency clock (see nordic&amp;#39;s reference designs).&lt;/p&gt;
&lt;p&gt;Also an external low frequency 32.768 kHz crystal is optional (reduces current when using BLE and other timers) but the interal RC oscillator can generate this signal. See this post: &lt;a href="https://devzone.nordicsemi.com/question/953/what-low-frequency-clock-sources-can-i-use/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But if you are talking about a real time clock - a clock that stores the time in hours and minutes (i.e. 12:48) then you will need to implement this yourself using the TIMER peripheral.&lt;/p&gt;
&lt;p&gt;-Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>