<?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>onboard external Real Time Clock on nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110813/onboard-external-real-time-clock-on-nrf52840</link><description>Hello , 
 
 Does nrf52840dk has an onboard external Real Time Clock ..? If yes, I couldn&amp;#39;t find it&amp;#39;s specifications anywhere in the documentation. Please help with the links. 
 Can I get any sample programs link to interface any external RTC like ds1307</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 May 2024 13:02:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110813/onboard-external-real-time-clock-on-nrf52840" /><item><title>RE: onboard external Real Time Clock on nrf52840</title><link>https://devzone.nordicsemi.com/thread/481560?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 13:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d462cde8-990b-45f6-8ffa-eee68ed54aed</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I would have a look at the &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/counter/maxim_ds3231.c"&gt;zephyr driver&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: onboard external Real Time Clock on nrf52840</title><link>https://devzone.nordicsemi.com/thread/481553?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 12:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:530c5e7c-f47f-462a-ad6a-24ac95852359</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Thanks, That clears it up for me.&lt;br /&gt;&lt;br /&gt;One last thing, these terms like set_alarm,&amp;nbsp;maxim_ds3231_get_syncpoint etc appear new to me.&lt;br /&gt;Please point me to documentation where I can read the implementation of RTC &amp;amp; maxim_ds3231&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: onboard external Real Time Clock on nrf52840</title><link>https://devzone.nordicsemi.com/thread/481552?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 12:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fda75d2-15ae-4816-b383-424f378af28c</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can have a look at this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102313/nrf52840-with-zephyr-rtos-how-to-use-rtc-with-struct-rtc_time"&gt;case&lt;/a&gt;. Just remember by default it would not keep the time if the device is reset. If you want to I would look into the following:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.zephyrproject.org/latest/services/settings/index.html"&gt;Settings&lt;/a&gt;&lt;span&gt;&amp;nbsp;in Zephyr to write something to the reserved flash page before shutting the core and read from the stored value when waking up. You can still use the read value to add on top of the RTC value to get an essence of tracking the time from the start.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: onboard external Real Time Clock on nrf52840</title><link>https://devzone.nordicsemi.com/thread/481537?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 11:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f8dda39-0e2a-47f0-a259-75e30f1e6dbd</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Ok Thanks &lt;a href="https://devzone.nordicsemi.com/members/runsiv"&gt;runsiv&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Based on this Real Time Counter, can the firmware maintain calendar time..?&lt;br /&gt;Is there any calendar module in nCS for maintaining calendar time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you give me a link to the sample program for calendar time from RTC..?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: onboard external Real Time Clock on nrf52840</title><link>https://devzone.nordicsemi.com/thread/481532?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 11:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c38bae4b-4b2d-4a31-85f8-5fd21e092896</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The timer accuracy is directly linked to the crystal tolerance, typically you can find that a specific crystal have an initial tolerance, a temperature tolerance, and an aging tolerance. These 3 parameters from the crystal spec should give you the information you want, there is no additional &amp;quot;inaccuracy&amp;quot; added internally.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in short it depends on the crystal used as the RTC source.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Runar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: onboard external Real Time Clock on nrf52840</title><link>https://devzone.nordicsemi.com/thread/481526?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 11:45:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f5a2f5-b326-45f3-be4e-01ff3e920806</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/runsiv"&gt;runsiv&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="122502" url="~/f/nordic-q-a/110813/onboard-external-real-time-clock-on-nrf52840/481501"]Our devices has a &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/rtc.html?cp=5_0_0_5_21"&gt;Real time Counter&lt;/a&gt;&amp;nbsp;not a Real time clock.&amp;nbsp;[/quote]
&lt;p&gt;Ok&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I wanted to understand the characteristics of Real time Counter and how accurate it is, If i keep the nordic board running for one whole year, will the time be accurate or will there be a few seconds difference as compared to external RTC modules like ds3231..?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: onboard external Real Time Clock on nrf52840</title><link>https://devzone.nordicsemi.com/thread/481501?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 10:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52e10ebc-4dd1-41c5-ba18-023b1494d7cf</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Our devices has a &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/rtc.html?cp=5_0_0_5_21"&gt;Real time Counter&lt;/a&gt;&amp;nbsp;not a Real time clock.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend having a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/zephyr/samples/drivers/counter/maxim_ds3231/README.html"&gt;DS3231 sample in Zephyr&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>