<?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>Cannot restart RTC from PPI after STOP, CLEAR tasks</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29992/cannot-restart-rtc-from-ppi-after-stop-clear-tasks</link><description>Hi, 
 I worked on the nrf51 for some years and recently moved over to the nrf52. PPI is a new interface I am exploring. I am having trouble restarting a RTC which was started by the CPU and Stopped by PPI. 
 If the RTC is started from PPI(say some GPIOTE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jan 2018 18:56:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29992/cannot-restart-rtc-from-ppi-after-stop-clear-tasks" /><item><title>RE: Cannot restart RTC from PPI after STOP, CLEAR tasks</title><link>https://devzone.nordicsemi.com/thread/119219?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 18:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76b5439a-8bf8-4a4c-ad0a-393b48f6733b</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;The PPI doesn&amp;#39;t have to use HF_EXT to operate.  It will use the HF_INT which uses considerably less current. And the RTC xtal based clock uses very little current.  A running design uses about 1.5uA overall. The RTC portion is about 0.35uA according to the blog.  The LF_RC uses more since it does a periodic cal.&lt;/p&gt;
&lt;p&gt;Also, my understanding is that it only turns on HF_INT when PPI is needed but it does not run all the time. I personally haven&amp;#39;t had any problems using PPI with SD on nRF52.  I just call power manage and everything resolves itself.&lt;/p&gt;
&lt;p&gt;There are a lot of entries on the subject:
&lt;a href="https://devzone.nordicsemi.com/question/48366/using-ppi-to-enabledisable-hfclk/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/95417/nrf52-ppi-easydma-power-consumption/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/36562/generating-a-pulse-with-rtc1-and-ppi/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot restart RTC from PPI after STOP, CLEAR tasks</title><link>https://devzone.nordicsemi.com/thread/119221?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 20:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c25b0950-e124-4fa4-b534-ec7af4a68458</guid><dc:creator>SantosDevOps</dc:creator><description>&lt;p&gt;Yes, in my actual solution, I kept it running. And I just clear later. I wanted to know if there was a limitation in the above approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot restart RTC from PPI after STOP, CLEAR tasks</title><link>https://devzone.nordicsemi.com/thread/119218?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 20:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7929cb5c-e176-4ba9-98c6-7bc6a4fea653</guid><dc:creator>SantosDevOps</dc:creator><description>&lt;p&gt;I believe there is a possible answer was already answered. (see below). I want to be able to reset the Compare event via PPI. I am trying to stay away from the CPU doing any tasks with the HFCLK. Is this then even possible?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/48619/rtc-nrf51-sdk-example-matches-compare0-only-once/?answer=49056#post-id-49056"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/156469/rtc-clear-ppi-after-compare/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot restart RTC from PPI after STOP, CLEAR tasks</title><link>https://devzone.nordicsemi.com/thread/119220?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 20:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7f13dd8-fdfe-4461-bd58-193860b5a133</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;The way you have it written it forces clear/compare/stop and start to all happen on the same pclk cycle. I&amp;#39;m fairly sure this is not possible.  Plus there really is no point in that.  Just do the clear and forget stop/start.  It is all the same logically in your code.&lt;/p&gt;
&lt;p&gt;Once you start the timer it just keeps running.  Then any cc event will just perform a clear and your gpio action, but the timer keeps running and starts over at 0x0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>