<?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>QDEC high power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35425/qdec-high-power-consumption</link><description>Hello. Project im developing requires low power wireless encoder. NRF52832 is a really impressive chip that handles everything i need within 40uA. But I&amp;#39;ve got problem with QDEC. I just can&amp;#39;t get it running with current consumption less than 400uA. SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jun 2019 13:15:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35425/qdec-high-power-consumption" /><item><title>RE: QDEC high power consumption</title><link>https://devzone.nordicsemi.com/thread/194124?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2019 13:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371f27fc-558c-45a4-adba-b60de4d778ec</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Try disabling the UART (nrf_log module). It&amp;#39;ll keep the HFCLK running in sleep.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC high power consumption</title><link>https://devzone.nordicsemi.com/thread/194003?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2019 07:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6284a33c-2d68-4ab4-846f-23928c51b399</guid><dc:creator>bevis</dc:creator><description>&lt;p class="_tgt transPara"&gt;&lt;span class="transSent"&gt;I have the same question. According to the answers below, if LFCK is turned on, am I using it in the wrong way?&lt;/span&gt;&lt;span class="transSent"&gt;And I&amp;#39;m a little confused about this result.&lt;/span&gt;&lt;span class="transSent"&gt;The use of RTC&amp;nbsp;&lt;/span&gt;&lt;span class="transSent"&gt;on or off QDEC regularly to achieve low power consumption??&lt;/span&gt;&lt;span class="transSent"&gt;Or something else?&lt;/span&gt;&lt;/p&gt;
&lt;p class="_tgt transPara"&gt;&lt;span class="transSent"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1464290f2225c3212e6c0cfa837895c.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/23210967ea6141bbfda4b1a5394fbac.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC high power consumption</title><link>https://devzone.nordicsemi.com/thread/136503?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 08:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:584af0f6-8b85-42b9-b114-ca7a1ca5897b</guid><dc:creator>Sergiooo</dc:creator><description>&lt;p&gt;Yes, it works excellent. QDEC draws only 0.8uA. RTC instance required, however. I am providing sample code in case someone would encounter same problems.&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{  
	
	NRF_CLOCK -&amp;gt; TASKS_LFCLKSTART = 1;
	while((NRF_CLOCK -&amp;gt; LFCLKSTAT  &amp;amp; CLOCK_LFCLKSTAT_STATE_Msk) == 0);
	
	NRF_RTC0 -&amp;gt; PRESCALER = 60;
	NRF_RTC0 -&amp;gt; EVTENSET =1;
	NRF_RTC0 -&amp;gt; TASKS_START = 1;
	
	NRF_QDEC -&amp;gt;ENABLE = 1;
	NRF_QDEC -&amp;gt;SHORTS = 2;
	NRF_QDEC -&amp;gt;LEDPOL = 0;
	NRF_QDEC -&amp;gt;LEDPRE = 10;
	NRF_QDEC -&amp;gt;SAMPLEPER = 0;
	NRF_QDEC -&amp;gt;PSEL.A = 25;
	NRF_QDEC -&amp;gt;PSEL.B = 24;
	NRF_QDEC -&amp;gt;PSEL.LED = 20;	
	
	NRF_PPI -&amp;gt;CH[0].EEP = (uint32_t)&amp;amp;(NRF_RTC0 -&amp;gt;EVENTS_TICK);
	NRF_PPI -&amp;gt;CH[0].TEP = (uint32_t)&amp;amp;(NRF_QDEC-&amp;gt;TASKS_START);
	NRF_PPI -&amp;gt;CHENSET=1;
	
	while(true){
	 __SEV();
	__WFI();
	__WFI();
	}	
	
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC high power consumption</title><link>https://devzone.nordicsemi.com/thread/136364?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 12:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d5faca3-353e-4af6-91a8-fd88eba1fbbe</guid><dc:creator>Sergiooo</dc:creator><description>&lt;p&gt;Thank you for clarification. I will try to use PPI then. Unfortunately, encoder draws 15 mA while sensing, so there is no way to use GPIOTE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC high power consumption</title><link>https://devzone.nordicsemi.com/thread/136279?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 07:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fe17637-d9b7-4ee1-bf15-3aa1bbad16da</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The QDEC peripheral requires the 16M clock tree to run, which adds approx. 400 uA (depending on the HFCLK source) in sleep. The recommended method, wrt. power consumption, is to enable the QDEC when required, and disable it before going to sleep. You can use a pin-interrupt on both inputs to re-enable the QDEC when waking up from sleep.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>