<?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>Asynchronous mode of timers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6656/asynchronous-mode-of-timers</link><description>Hello. 
 I need to count impulses going to nrf51822 in low power mode. I use the following code to configure GPIOTE and PPI to toggle counter and it works well: 
 #define PPI_CHANNEL 0
#define PULSE_INPUT_NUM 2
#define TIMER NRF_TIMER1 
 void initPulseCaptureInput</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Apr 2015 13:45:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6656/asynchronous-mode-of-timers" /><item><title>RE: Asynchronous mode of timers</title><link>https://devzone.nordicsemi.com/thread/23340?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2015 13:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f74e67-c23c-4af4-a56f-9d9f574b149a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@kada: I think I know the issue. It was because you are using chip version 1. If you look at the nRF51822-PAN_v2.2.pdf you can find issue #39 &amp;quot;GPIOTE: 1V2 + HFCLK are requested always when the GPIOTE task is configured” this causes the current consumption of 1mA.&lt;/p&gt;
&lt;p&gt;If you remove GPIOTE Task it should drop to 2.8 uA.&lt;/p&gt;
&lt;p&gt;I suggest you to continue development with XLR3 chip (included in nRF51 DK PCA10028)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asynchronous mode of timers</title><link>https://devzone.nordicsemi.com/thread/23339?ContentTypeID=1</link><pubDate>Sun, 26 Apr 2015 07:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cbf1124-71af-446d-ac6d-6a5f628c2b0f</guid><dc:creator>kada</dc:creator><description>&lt;p&gt;Just tested your code and I still have &amp;gt;1 mA current consumption. When I comment gpiote_init(); and counter_init(); function calls the current reduced to 2.8 uA. What is the problem? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asynchronous mode of timers</title><link>https://devzone.nordicsemi.com/thread/23338?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2015 13:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de528a0f-b73d-4b76-9304-ca4b6287ef19</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@kada: The counter only requires HFCLK when it is active when COUNT task is triggered, when IDLE it should not let the HFCLK running. I suspect that you may have something else that keep the clock running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asynchronous mode of timers</title><link>https://devzone.nordicsemi.com/thread/23337?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2015 11:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9c9f70c-ccff-4e4f-8722-5f02298e3a0b</guid><dc:creator>kada</dc:creator><description>&lt;p&gt;Thank you, Hung Bui.
I&amp;#39;m using RFduino board programming it directly from Arduino IDE. Later I can check your code when installed Keil uvision.
Also my chip version is QFAACA. But I didn&amp;#39;t find anything related to increasing power consumption when running Timer in the PAN. I guess the Timer 0, 1, 2 is in the PCLK16M domain and when you start Timer even in counter mode the HFCLK source switched on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asynchronous mode of timers</title><link>https://devzone.nordicsemi.com/thread/23336?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2015 12:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9627c573-8984-4bc4-9b85-2f8a795af747</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@kada: I can&amp;#39;t reproduce the high current consumption as you described. In my test it&amp;#39;s about 4 uA when idle.
I attached here the test code. It&amp;#39;s tested on PCA10028. (please ignore RTC and lfclk code).
SDK v8.0
Which chip version on your board ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtc-_2D00_-GPIOPORT_5F00_COUNTER.zip"&gt;rtc - GPIOPORT_COUNTER.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>