<?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 every second generates TIMER COUNT through PPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32847/rtc-every-second-generates-timer-count-through-ppi</link><description>Hello, 
 This case is a part of a private case. Unfortunately havent responded for few days. I believe he has days off or something, therefore I am willing to receive help in a public case because of an upcoming deadline. 
 My setup is pca10040 board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Mar 2018 14:58:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32847/rtc-every-second-generates-timer-count-through-ppi" /><item><title>RE: RTC every second generates TIMER COUNT through PPI</title><link>https://devzone.nordicsemi.com/thread/126462?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2018 14:58:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df8e299f-4d76-4eca-b53d-bcf9c65959e2</guid><dc:creator>Chocol8</dc:creator><description>&lt;p&gt;Thanks for pointing out details. I totaly agree with you that it is waste of energy if being used this method in while(1) loop. I was not specific about how I finished up my situation. I just mentioned that I could not see any Increasement in CC register because I used power_manage(); function in the same while(1) loop. At the moment I use GPIOTE event on button push to read the time.&lt;/p&gt;
&lt;p&gt;Anyway, thanks for replying.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC every second generates TIMER COUNT through PPI</title><link>https://devzone.nordicsemi.com/thread/126461?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2018 14:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d66ee714-0576-45f3-bd3e-cc60f87d8707</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;There is no reason to do anything in main.&amp;nbsp; That would just be a waste of power.&lt;/p&gt;
&lt;p&gt;The point of ppi/gpiote is that tasks and task end points can be tied together as you wish. You don&amp;#39;t need interrupt handlers and you certainly don&amp;#39;t need to poll registers in main.&lt;/p&gt;
&lt;p&gt;You should read up on ppi/gpiote.&amp;nbsp; There are many, many examples in the devzone also I think Nordic now includes a calendar function that does precisely what you are looking for in the current SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC every second generates TIMER COUNT through PPI</title><link>https://devzone.nordicsemi.com/thread/126447?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2018 11:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:693c17ff-0cf8-4ef6-aa35-cf1f31ad8fd1</guid><dc:creator>Chocol8</dc:creator><description>&lt;p&gt;Found the cause. TIMER COUNT register can be reached using this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_TIMER2-&amp;gt;TASKS_CAPTURE[2] = 1;  // This is asking to capture the current counter into CC[2]
TIMER_COUNTER = NRF_TIMER1-&amp;gt;CC[2];   // counter value  at the instant when capture task was triggered is now ready to be read in CC[2]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this was not capturing in my main function while(1) because I was using&amp;nbsp;&lt;strong&gt;power_manage();&amp;nbsp;&lt;/strong&gt;which somehow blocked capturing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>