<?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>Changing RTC2 compare values on nRF24LE1 during runtime</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18938/changing-rtc2-compare-values-on-nrf24le1-during-runtime</link><description>Hi, 
 i am working with nRF24LE1&amp;#39;s as one master and many slaves. I also use the RTC2 functionality for the register retention mode. 
 As i read in the documentation the RTC2 counts from zero up to the specified compare value (RTC2CMP0:RTC2CMP1) and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 15 Jan 2017 21:44:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18938/changing-rtc2-compare-values-on-nrf24le1-during-runtime" /><item><title>RE: Changing RTC2 compare values on nRF24LE1 during runtime</title><link>https://devzone.nordicsemi.com/thread/73210?ContentTypeID=1</link><pubDate>Sun, 15 Jan 2017 21:44:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48ae41f8-ba73-4c03-8d17-05c5b2a66a9e</guid><dc:creator>EwanX</dc:creator><description>&lt;p&gt;This behaviour is exaclty what i wanted but have overlooked in the spec. :-(&lt;/p&gt;
&lt;p&gt;Thx for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing RTC2 compare values on nRF24LE1 during runtime</title><link>https://devzone.nordicsemi.com/thread/73209?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 09:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fe23ccc-8e1e-4db9-b0b3-30bdb6fca912</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You can change the RTC compare without stop-start the RTC.
But as you mentioned, care should be taken so that glitch won&amp;#39;t happen. We mentioned in the spec:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The RTC2 compare value is updated every time RTC2CMP1 or RTC2CMP0 is written. This might give
unwanted behavior if precaution is not taken when updating any of the variables. When new values are
written to RTC2CMP1 and RTC2CMP0, the RTC2 IRQ should be disabled to prevent unwanted RTC2 IRQ.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing RTC2 compare values on nRF24LE1 during runtime</title><link>https://devzone.nordicsemi.com/thread/73208?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 17:04:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2877ad-9efd-4b07-9c44-5632aee7589a</guid><dc:creator>EwanX</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;this is my current workaround but i hoped there is a simple and faster solution. Ok.&lt;/p&gt;
&lt;p&gt;What would happen if i change the compare values without stopping the RTC (ensuring the current counter is not near the compare value)?
Is the new set compare value automatically used or has it to be reloaded with stopt-start of the RTC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing RTC2 compare values on nRF24LE1 during runtime</title><link>https://devzone.nordicsemi.com/thread/73207?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 12:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e25f056b-f693-4577-a0d4-eb0b5b65fc1c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ewan,&lt;/p&gt;
&lt;p&gt;Unfortunately, it&amp;#39;s not possible to pause or stop the RTC on the nRF24LE1. You can only disable the RTC but that will clear the timer val.&lt;/p&gt;
&lt;p&gt;A workaround is to capture the value of the timer right just before you stop it. And then you can do a calculation to adjust the next compare value when you start it again to compensate. And after the timer hit the compare for the first time, you can switch back to the original compare.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>