<?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>Regarding accuracy of RTC based on Internal clock</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97632/regarding-accuracy-of-rtc-based-on-internal-clock</link><description>Hello, 
 
 I am using a BL653dvk (nrf52833 based) for my application development. 
 I need to have a timer module, which is at the least accurate to 1ms in time regulation, once I set the time. 
 
 But my observation is that, once I set the time, it varies</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Mar 2023 13:31:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97632/regarding-accuracy-of-rtc-based-on-internal-clock" /><item><title>RE: Regarding accuracy of RTC based on Internal clock</title><link>https://devzone.nordicsemi.com/thread/415475?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 13:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f793ef3-e72e-4e72-b373-a0e005c519ac</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is a RTC sample in nRF Connect SDK at:&amp;nbsp;zephyr\tests\drivers\timer\nrf_rtc_timer&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding accuracy of RTC based on Internal clock</title><link>https://devzone.nordicsemi.com/thread/415388?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 08:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:452e9b84-6d3c-4cfa-990b-594b86729ef9</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Is there any example like the same in nrf connect SDK..?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding accuracy of RTC based on Internal clock</title><link>https://devzone.nordicsemi.com/thread/415195?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 12:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ddb53a-9614-44db-816d-9cf56a0a0979</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here is a modified &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/rtc_example.html?cp=9_1_4_6_34"&gt;RTC example&lt;/a&gt; with added calibration routine, it was built for SDK v17.02.&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3666.SDK17.0.2_5F00_peripheral_5F00_rtc_5F00_w_5F00_rcosc.zip"&gt;devzone.nordicsemi.com/.../3666.SDK17.0.2_5F00_peripheral_5F00_rtc_5F00_w_5F00_rcosc.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding accuracy of RTC based on Internal clock</title><link>https://devzone.nordicsemi.com/thread/415117?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 10:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7ad7e41-9c85-475c-8be5-a910a92a7506</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/97632/regarding-accuracy-of-rtc-based-on-internal-clock/415113"]Do you have an external crystal for your low frequency clock or are you using the RC oscillator?[/quote]
&lt;p&gt;RC oscillator.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/97632/regarding-accuracy-of-rtc-based-on-internal-clock/415113"]but you can try calibrating the clock and see if that helps[/quote]
&lt;p&gt;How can I calibrate the clock..?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/97632/regarding-accuracy-of-rtc-based-on-internal-clock/415113"]Also, I would recommend using our drivers instead of trying to do this bare metal.[/quote]
&lt;p&gt;Can you kindly point me to a sample/example code from where I can build up..?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding accuracy of RTC based on Internal clock</title><link>https://devzone.nordicsemi.com/thread/415113?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 10:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a42f746-d756-44aa-b0d1-66fb18d14a1a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you have an external crystal for your low frequency clock or are you using the RC oscillator?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;43 seconds is more than I would expect even with the RC oscillator, but you can try calibrating the clock and see if that helps.&lt;/p&gt;
&lt;p&gt;Also, I would recommend using our drivers instead of trying to do this bare metal.&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>