<?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>How to create clock to observe current time in nrf52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22115/how-to-create-clock-to-observe-current-time-in-nrf52</link><description>hi, I want to create a clock to monitor time whenever i want. can anyone give me an idea how to create it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 May 2017 10:53:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22115/how-to-create-clock-to-observe-current-time-in-nrf52" /><item><title>RE: How to create clock to observe current time in nrf52</title><link>https://devzone.nordicsemi.com/thread/86889?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 10:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0e79b3-021e-4964-9773-3efd6997b11d</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create clock to observe current time in nrf52</title><link>https://devzone.nordicsemi.com/thread/86888?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 07:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd27e2c-6f66-425a-bbd6-a942764d43f7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I made a small RTC example a while back based on the time.h library, that allows you to set and read the time, and keep track of it using the RTC.&lt;/p&gt;
&lt;p&gt;I have made it available here: &lt;a href="https://github.com/NordicSemiconductor/nrf5-calendar-example"&gt;nrf-calendar-example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please be aware that it currently doesn&amp;#39;t support SoftDevice coexistence.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create clock to observe current time in nrf52</title><link>https://devzone.nordicsemi.com/thread/86892?ContentTypeID=1</link><pubDate>Wed, 17 May 2017 11:14:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ea7e7e-3b6a-45e8-a446-b59b69bebb58</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;You indeed can use app_timer module from SDK as it&amp;#39;s using RTC hardware underneath. You might get something smaller and even more optimized if you write it from scratch but it should work well when going with this lib. The main challenge will be precision (short term - because app_timer interrupts will probably run with low priority so you can experience up to several milliseconds jitter if you want to achieve sub-ms accuracy - and long term - because of natural drift of LF clock source).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create clock to observe current time in nrf52</title><link>https://devzone.nordicsemi.com/thread/86891?ContentTypeID=1</link><pubDate>Wed, 17 May 2017 08:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8364e424-4231-4f84-9667-5305cfcc931b</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;thank you for the reply, what if i use app_timer for creating a clock. and what are difference bw using RTC and app_timer to create a clock?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create clock to observe current time in nrf52</title><link>https://devzone.nordicsemi.com/thread/86890?ContentTypeID=1</link><pubDate>Wed, 17 May 2017 08:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de7d9e7a-592a-4883-9b33-79570d23f342</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Use RTCx HW peripheral to emulate &amp;quot;tick&amp;quot; and then convert it to human readable time whenever needed. Sure you need to synchronize the clock first and then correct periodically (but that depends on how precise you have LF clock source and how precise you want to be). There are simple examples how to work with RTC in nRF5 SDK examples and HW &amp;quot;driver&amp;quot; libraries but don&amp;#39;t expect this exact code, you will need to write the logic yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>