<?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>RTC CC register</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10012/rtc-cc-register</link><description>Hi, I&amp;#39;ve got a pretty basic question, but I haven&amp;#39;t found a satisfying answer for it. It is obvious, that the CC registers are 32 bit wide, but because the RTC Counter is only 24bit, the same bitwidth is used for CC. The question is: 
 What happens if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Nov 2015 12:30:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10012/rtc-cc-register" /><item><title>RE: RTC CC register</title><link>https://devzone.nordicsemi.com/thread/37094?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2015 12:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a328cd3b-2046-4406-a6ab-807620c1d44a</guid><dc:creator>Konrad Traczyk</dc:creator><description>&lt;p&gt;Yep, that&amp;#39;s correct answer. Finally I have the hardware and I&amp;#39;ve made some tests.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC CC register</title><link>https://devzone.nordicsemi.com/thread/37093?ContentTypeID=1</link><pubDate>Sat, 31 Oct 2015 01:10:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93958486-8e2f-4abd-8271-e35cc647f8a0</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I don&amp;#39;t know what you mean by a &amp;#39;freeze&amp;#39; condition, but the comparator just ignores everything apart from the lowest 24 bits and compares based on those. So your code would be treated equivalently to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_RTC1-&amp;gt;CC[0] = ( NRF_RTC1-&amp;gt;COUNTER + time_offset ) &amp;amp; 0xFFFFFF;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;yes wraparound count to zero triggers the compare. Clearing to zero doesn&amp;#39;t.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>