<?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>Peripherals in Low power mode-Idle mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61362/peripherals-in-low-power-mode-idle-mode</link><description>Hi Team, 
 
 I am working on SYSTEM ON mode with Low power mode also called Idle mode in nRF9160 module. 
 I was able to go to Idle mode with current consumption of 6uA with MCU ON, modem OFF, RTC OFF.Though this current is more compared to the value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 May 2020 09:06:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61362/peripherals-in-low-power-mode-idle-mode" /><item><title>RE: Peripherals in Low power mode-Idle mode</title><link>https://devzone.nordicsemi.com/thread/249872?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 09:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3de9113-74d1-4124-8d25-dbbcf3b61847</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;
[quote user=""]I was able to go to Idle mode with current consumption of 6uA with MCU ON, modem OFF, RTC OFF.Though this current is more compared to the value given in product specification document.[/quote]
&lt;p&gt;Is this measured on a nRF9160 module with B00 marking (production grade silicon)? Engineering devices, with marking BAA, has a marginally higher sleep current.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is it possible to work on low CPU clock in system ON mode? As of now from nRF9160_PS_v1.20.pdf document CPU clock is 64MHZ. In order to reduce the current consumption I would like to change the clock to&amp;nbsp;1MHZ or 32KHz when moving to Idle state from active state.[/quote]
&lt;p&gt;CPU will always run on 64 MHz, and cannot be changed.&lt;/p&gt;
&lt;p&gt;You can use the RTC (32.768 kHz) peripheral to wake up the CPU in intervals.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Can ADC peripheral work in Idle mode? The use case is, when system is not doing any modem or radio activity, in order to reduce current we would like to move M33 core&amp;nbsp; to Idle state and in Idle state we want ADC peripheral to sense the pressure and temperature input continuously as my end product is for gas metering application.[/quote]
&lt;p&gt;&amp;nbsp;Yes, it can, but it will cause the IDLE current consumption to rise, as the DMA clock will be kept on in sleep. I would recommend using a timer instance (based on the RTC to ensure low power in sleep) to wake up the CPU if you need periodic ADC measurements.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Can M33 core change to active mode from Idle mode based on ADC interrupt?[/quote]
&lt;p&gt;Any event that occurs, which is enabled, can potentially wake up the CPU.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Will DMA work in idle mode?[/quote]
&lt;p&gt;Yes, but if kept active (on at all times) in sleep; your current consumption will be in the 1 mA area, depending on which peripheral is requiring it, and if it is asynchronously triggered or not. UARTE without hardware flow control will for instance keep the clock tree running in sleep, as the receiver has no way of knowing when a UART host can potentially send a byte to the nRF.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Can we do pulse capture or pulse counting on a GPIO in Idle mode?[/quote]
&lt;p&gt;&amp;nbsp;If you setup a TIMER peripheral in count mode, and use GPIOTE IN channel, and tie that together with DPPI, yes: it is then possible to increment the timer without involving the CPU.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Can timers run in idle mode?If yes can you please guide us how to configure timer to run in Idle mode.[/quote]
&lt;p&gt;&amp;nbsp;Yes. You can for instance use a kernel timer:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/1.12.0/kernel/timing/timers.html"&gt;https://docs.zephyrproject.org/1.12.0/kernel/timing/timers.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This timer handler will run in interrupt context, so I would recommend that you combine it with some sort of offloading to main context, like a system workqueue:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/reference/kernel/threads/workqueue.html"&gt;https://docs.zephyrproject.org/latest/reference/kernel/threads/workqueue.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Can we put radio In EDRX mode and M33 core in idle mode?[/quote]
&lt;p&gt;&amp;nbsp;Yes, you can. The modem and the application are asynchronous to each other.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Whether any radio nRF9160 interrupt can drive M33 core from idle mode to working mode?[/quote]
&lt;p&gt;&amp;nbsp;If there is something that the application should handle, then yes; the modem may trigger an event to the application, which causes a wakeup.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind 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>