<?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 timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/363/rtc-timer-is-shiffting-after-connection-disconnetion</link><description>Dear Nordic Devloper Zone, 
 I am facing a problem with RTC timer. 
 Here is a scenario : 
 I have an IOS application which is able to set the current time on the nRF51822. 
 In the nRF51822 application, I am using a timer on RTC1 (32kHz) which is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Oct 2013 05:43:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/363/rtc-timer-is-shiffting-after-connection-disconnetion" /><item><title>RE: RTC timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/thread/1904?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2013 05:43:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74366bf9-a37c-40c0-ade1-4206333f6c15</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Keep in touch if you find something&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/thread/1903?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2013 05:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08183026-92b0-4335-98d6-f1c9548f7b69</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Really sorry, but I can&amp;#39;t help you because this problem still exists on our side. I always as in my todo list a 32kHz precision measurment that you ca do like this : &lt;a target="_blank" href="https://devzone.nordicsemi.com/index.php/lfclk-32khz-on-a-gpio-pin-for-precision-measurement" rel="nofollow"&gt;https://devzone.nordicsemi.com/index.php/lfclk-32khz-on-a-gpio-pin-for-precision-measurement&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/thread/1902?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2013 05:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf7e85f-15e7-47f0-9be3-46e75edb1e19</guid><dc:creator>Sami Pekkanen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have same kind of problem. I receive all interrupts only when I have connection ongoing. Without connection I lost 40% of interrupts.&lt;/p&gt;
&lt;p&gt;What was reason in your cases?&lt;/p&gt;
&lt;p&gt;Br,
Sami&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/thread/1901?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2013 12:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ccde1e9-a806-4ef2-a568-3a35df52ce92</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;No problem :) I suggest you use toggle two different GPIOs, one in the interrupt handler and one using PPI. If the PPI-triggered GPIO toggles but the IRQ-triggered one does not toggle you know there is something delaying the IRQHandler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/thread/1900?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2013 11:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab47a83-f176-4487-81af-ac3db9787724</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Hi Audun,&lt;/p&gt;
&lt;p&gt;For you for your effort! I am going to map 32kHz on a GPIO pin and check with oscillator like you.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/thread/1899?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2013 11:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:531ce95b-529f-462e-b2b0-2374ace47e47</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;Hi Sebastien,&lt;/p&gt;
&lt;p&gt;the RTC timer itself is not stopped when connecting/disconnecting, but interrupts can be delayed for a couple of ms due to SoftDevice radio interrupts when connected. This should not influence your timekeeping however, as the timescale is much larger than radio interrupts.&lt;/p&gt;
&lt;p&gt;I ran a test toggling an IO from the RTC1_IRQHandler while connecting/disconnecting, but I could not see similar behavior as you are describing.
Are you sure you are not doing anything when connect/disconnect events happen? Maybe some other task is blocking the RTC1_IRQHandler from executing.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtc_5F00_ble_5F00_test.png" alt="rtc_ble_test.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/thread/1898?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2013 08:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ad5f0ea-4c93-4192-8b29-e28dd36f2fa8</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Hi Audun,&lt;/p&gt;
&lt;p&gt;Thanks for taking the time to read my question. I am using an external 32kHz clock.&lt;/p&gt;
&lt;p&gt;Do not hesitate to contact me if you need more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC timer is shiffting after connection/disconnetion</title><link>https://devzone.nordicsemi.com/thread/1897?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2013 06:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdb9f56d-a604-4e08-a91f-d600389651bc</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;Are you using an external 32 kHz crystal or the internal RC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>