<?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>About RTC Counter</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115038/about-rtc-counter</link><description>Hi, 
 I am using an external low speed clock driven rtc to implement the perpetual calendar feature, but when setting the time, I find that the COUNTER is not modifiable. May I ask how to reflect the time modification on the COUNTER? 
 Thanks， 
 Solo</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2024 15:06:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115038/about-rtc-counter" /><item><title>RE: About RTC Counter</title><link>https://devzone.nordicsemi.com/thread/504024?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 15:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:554e2f82-2838-4ef1-823d-f24f676d550b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please note that the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/rtc.html"&gt;RTC peripheral on the nRF52833&lt;/a&gt;, just as for our other SoCs, is a Real Time Counter, and not a Real Time Clock. The peripheral is, for most intents and purposes, a timer peripheral running on the low frequency clock.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/rtc.html#register.COUNTER"&gt;COUNTER register&lt;/a&gt; is read only, that is correct. From what I understand, you want to synchronize the RTC counter with an external clock source. In order to do so, you must trigger a reset of the counter at the right instant. (In other words: The only way to manipulate the value of COUNTER is for it to reset (to 0), so you have to trigger a reset at a point in time where it should get reset to 0.)&lt;/p&gt;
&lt;p&gt;What this means for your implementation is a bit hard to tell without any implementation specific details. (E.g. how do you intend to use the COUNTER value, what is it a measure of, what is the frequency, etc.)&lt;/p&gt;
&lt;p&gt;For reference of a calendar implementation, you can have a look at the &lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;nrf-calendar-example from NordicPlayground&lt;/a&gt;, which was made for nRF5 SDK v16.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>