<?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>What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/431/what-is-the-power-and-clock-model-of-peripheral-in-nrf51</link><description>Hello, 
 I was puzzled by RM. 
 I notice POWER control register in peripheral(UART,SPI,TWI) module. 
 Please answer following questions about the relation between system power and the peripheral power register value. 
 
 Will UART be powered when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 04 Jan 2015 00:39:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/431/what-is-the-power-and-clock-model-of-peripheral-in-nrf51" /><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2212?ContentTypeID=1</link><pubDate>Sun, 04 Jan 2015 00:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e45a1be8-0e80-47b9-ac76-b5f234ed9cee</guid><dc:creator>Bee</dc:creator><description>&lt;p&gt;Thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2211?ContentTypeID=1</link><pubDate>Fri, 02 Jan 2015 07:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e44d639-fe81-467a-a745-ae96fa684fe3</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi   I updated references to documentation and erased the comment about the PAN since it is no longer relevant for the new documentation. So the numbers in the current nRF51822 should be correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2210?ContentTypeID=1</link><pubDate>Wed, 31 Dec 2014 02:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bfc1185-f640-4f77-b8b0-2056383abfe2</guid><dc:creator>Bee</dc:creator><description>&lt;p&gt;Hi! I just saw &amp;quot;Please also note that there is a PAN item on the current consumption being higher than specified for the current chip revision.&amp;quot; I need that PAN to resolve a problem about system off current consumption, but the link of PAN is Disabled. Could you please give me a new link of that PAN?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2209?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2014 18:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82771131-1e78-47e9-a831-62adfb9da192</guid><dc:creator>Matt Leising</dc:creator><description>&lt;p&gt;Are there any examples for nrf6310 that demonstrate power off and wake up via a sense detect configuration on a pin? I am having some trouble understanding that. Also, if I want to configure a pin for sense low to high, what would the threshold voltage be? Is it more recommended to have it set for sense low?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2216?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2013 10:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:510249b6-f5b6-4c37-a124-d59bc76e4a5c</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Since this is mostly unrelated questions, it would have been great if you could post them separately instead of hi-jacking this question. I&amp;#39;ll try to answer them briefly here, but if you have follow-up-questions, please submit a new question.&lt;/p&gt;
&lt;p&gt;1., 4. See this question: &lt;a target="_blank" href="https://devzone.nordicsemi.com/index.php/why-does-my-nrf51822-consume-1-ma-in-sleep" rel="nofollow"&gt;https://devzone.nordicsemi.com/index.php/why-does-my-nrf51822-consume-1-ma-in-sleep&lt;/a&gt;&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;
&lt;p&gt;There are several examples in the SDK, including ones that use low-power modes. If there is anything in particular you&amp;#39;re missing, please see if there are any interesting questions here on the Developer Zone, or submit a new one, and we&amp;#39;ll try to help you.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Since the radio API of BLE and ANT are very different, it&amp;#39;s not easy to share code between them. However, all the hardware examples are equal, since they interface with the hardware directly instead of the softdevice API. All of those examples should be in the Board/nrf6310 folder. Even if you have the Evaluation Kit (pca10001), these examples should still be useful, but you may have to change the pinout to use them successfully.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2218?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2013 10:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1807a4b-a869-4f4e-bbf9-7c5688bcc669</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Have you seen this question?
&lt;a target="_blank" href="https://devzone.nordicsemi.com/index.php/why-does-my-nrf51822-consume-1-ma-in-sleep" rel="nofollow"&gt;https://devzone.nordicsemi.com/index.php/why-does-my-nrf51822-consume-1-ma-in-sleep&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2217?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2013 02:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a12fbe1-34fa-49e5-8902-67ad7f659151</guid><dc:creator>roger hayes</dc:creator><description>&lt;p&gt;Update:  Per above, we measure about 1.7Ma while the WFI is active. HOWEVER: If the power is taken off the circuit and it&amp;#39;s re-powered, it drops to about .020Ma current draw?&lt;/p&gt;
&lt;p&gt;What&amp;#39;s going on??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2215?ContentTypeID=1</link><pubDate>Sun, 27 Oct 2013 23:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf0633a-3bee-412d-a3f8-67e8b17ed04a</guid><dc:creator>roger hayes</dc:creator><description>&lt;p&gt;Ole - Thanks for your comments - Please keep going:&lt;/p&gt;
&lt;p&gt;[b]YOu said &amp;quot;System on, idle In this mode, all peripherals that are enabled when entering sleep stays enabled, and you can wake up on any interrupt. All clocks and regulators that are not required by a running peripheral will be turned off, but all RAM and registers are retained. When the chip comes out of sleep, it continues where it left off.&lt;/p&gt;
&lt;p&gt;With the soft devices, you can enter this sleep mode using sd_app_event_wait(), and if you don&amp;#39;t use the softdevice, you can use __WFI().&lt;/p&gt;
&lt;p&gt;The base current consumption in this mode is given in table 23 in the PS as I_ON, 2.3 µA. The current consumption of any running peripheral, and their required clocks and regulators will come on top of this. The block requirements of the different peripherals can be seen in table 24 in section 8.3 in the nRF51822 PS. &amp;quot;[/b]&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Further - I cannot seem to get below 1.69Ma current loading w/ the _WFI as per above. The wait is work ing well (per a gpio LED flask between loops) and i see the current drop from about 4.2Ma while active and the lower when it&amp;#39;s sleeping. This is still WAY too much current loading for the life we&amp;#39;re looking for. Assuming that the RTC requires a clock, what are our options on killing the peripherals. In my case, ADC is disabled, and the ANT is not enabled yet.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Where can one find competent, complete examples of the nrf_wait_for_app_event calls?? The documents leave LOTS to be desired and cause lots of struggles w/ the new-comers to NS.  Other makers are flooded with examples and variations of them - NS does not seem to have it there..??&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Note that I notice lots of examples referencing the BTE development sets (that are still Corex-0 based?) but are missing from the NRF (ANT sdk) examples? Are they interchangeable, excluding the radio basis&amp;#39;.  Why are the examples not global to the SOC&amp;#39;s?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I stumbled into getting the nrf_wait_for_app_event working a few days ago (my fault) but cannot seem to get it working again.  I had it to ~.00-3Ma at one point but lost it and did not consider that it would be this difficult to get it running again. I&amp;#39;ve never gotten it to work since.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;tks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2219?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2013 12:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14b14433-ee77-4bb7-a2be-1fa6b20ff8cc</guid><dc:creator>Ole Morten</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;When you enter system off, everything is turned off automatically, and no preparation is needed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Only the 16 MHz clock is forced on in CONSTLAT, not anything else.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Both in WFI and when running normally, only peripherals that have been enabled are powered.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;See above. The only thing you should care about is to enable peripherals when you need them, and disable them as soon as possible afterwards, no matter if you are currently running or sleeping.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I&amp;#39;ve also tried to clarify the above answer somewhat, so I&amp;#39;d be happy if you could accept it if you found it useful, by clicking the &amp;quot;Accept as answer&amp;quot; button below it. That makes it easier for others to find. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2214?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2013 11:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c353e5a0-2863-4b04-b0a7-049e20fd8dcc</guid><dc:creator>paulinx</dc:creator><description>&lt;p&gt;Can anyone answer my new questions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2213?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2013 12:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b92094a-b68c-44dd-856b-4a8448a1bd20</guid><dc:creator>paulinx</dc:creator><description>&lt;p&gt;OK, I got something from your answer.  Please correct me if i made mistake in followings.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In off mode, everything can be turned off are turn off from clock, turn off from power, no retention.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In constant latency mode, every power and any clock are forced on, even in wfi.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In low power mode, when in wfi, peripheral, which is not enabled, is not clocked and power off with retention.
When not in wfi, every module is powered and clocked.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;So if I explicitly power off some module that i need not throughout my application by POWER register, i will save power in RUN mode.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Am I right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the power and clock model of peripheral in NRF51?</title><link>https://devzone.nordicsemi.com/thread/2208?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2013 05:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af4f7442-185f-4ecd-9170-53035ade905d</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;For information on the low frequency clock model (32kHz), look at &lt;a href="https://devzone.nordicsemi.com/question/953/what-low-frequency-clock-sources-can-i-use/?answer=955#post-id-955"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For information on the high frequency clock model (16MHz), look at &lt;a href="https://devzone.nordicsemi.com/question/18096/what-is-the-high-frequency-clock-model-for-nrf51/?answer=18097#post-id-18097"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;With the nRF51822, there is just two power modes you need to be aware off, system on idle and system off.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;System on, idle&lt;/strong&gt;
In this mode, all peripherals that are enabled when entering sleep stays enabled, and you can wake up on any interrupt. All clocks and regulators that are not required by a running peripheral will be turned off, but all RAM and registers are retained. When the chip comes out of sleep, it continues where it left off.&lt;/p&gt;
&lt;p&gt;With the softdevices, you can enter this sleep mode using sd_app_event_wait(), and if you don&amp;#39;t use the softdevice, you can use __WFE(). sd_app_event_wait() function (inside power_manage() function) is used in most of the examples in the nRF51 SDK. An example on how to use __WFE() is given in the &lt;a href="https://github.com/NordicSemiconductor/nrf51-powerdown-examples"&gt;system-on-wakeup-on-gpio example on Nordic&amp;#39;s Github&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The base current consumption in this mode is given in table 32 in the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/nRF51822-PS/20339"&gt;nRF51822 PS v3.1&lt;/a&gt; as I_ON, 2.6 µA. The current consumption of any running peripheral, and their required clocks and regulators will come on top of this. The block requirements of the different peripherals can be seen in table 33 in section 8.3 in the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/nRF51822-PS/20339"&gt;nRF51822 PS v3.1&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Sub-power modes&lt;/em&gt;
There are also two sub-power modes, the default LOWPWR, and CONSTLAT. These are described in section 11.1.4 in the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/nRF51-RM/20337"&gt;nRF51 Reference Manual&lt;/a&gt;. Using the CONSTLAT mode will keep the 16 MHz clock running all the time, so that the wake-up time is constant and low (&amp;lt; 3 µs). This comes with the cost of having the 16 MHz clock always running, even when no peripherals need it, which gives a consumption increase of several hundred µA. The default is to use LOWPWR.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;System off&lt;/strong&gt;
In this mode, all peripherals, clocks and regulators are turned off, and the only wake-up sources are a reset and GPIOs with SENSE configured (SENSE field in PIN_CNF set to low or high). By default, all RAM is also turned off, but this can optionally be kept on by changing the RAMON register. When the chip comes out of this sleep mode, it always starts from reset, and RAM (if not configured otherwise) and registers that are not marked as retained are cleared. See table in section 11.1.7.8 in the &lt;a href="https://www.nordicsemi.com/eng/content/download/13233/212988/file/nRF51_Reference_manual%20v1.1.pdf"&gt;nRF51 Reference Manual&lt;/a&gt; for details on reset behavior.&lt;/p&gt;
&lt;p&gt;With the softdevices, you can enter this mode with sd_power_system_off(), and without them, by writing 1 to the SYSTEMOFF register in the POWER peripheral. When entering system off, all peripherals are automatically turned off, so no preparation is needed.&lt;/p&gt;
&lt;p&gt;The base current consumption in System Off is given in table 32 in the nRF51822 PS as I_OFF, 0.6 µA. RAM retention increases this, as stated in the same table. Since all peripherals and clocks are turned off, which peripherals are enabled when entering this mode doesn&amp;#39;t matter for the current consumption.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;General considerations&lt;/strong&gt;
All peripherals are per default off, and only peripherals that have been explicitly enabled will be on at any time. To achieve low current consumption with the nRF51, the general recommendation is therefore to only turn perpiherals on for as short time as possible, and explicitly turn them off whenever they are not needed. This is usually done by writing a Disabled value to the peripheral&amp;#39;s ENABLE register, and will ensure that they don&amp;#39;t keep the clock running when it isn&amp;#39;t actually needed.&lt;/p&gt;
&lt;p&gt;In addition, it&amp;#39;s always safe to enter system on, idle, from the main context, since whatever has been enabled before you enter this mode will stay enabled through it. This is therefore very well suited to be the only action in the main loop, and you should make all other actions in your application depend on interrupts or events coming either from perpiherals (timers) or from the BLE/ANT stacks.&lt;/p&gt;
&lt;p&gt;Use system off only when you can live with requiring user action (i.e. button presses) to wake you up again, and with a reset being done (i.e. when you don&amp;#39;t have any state information that you need to preserve).&lt;/p&gt;
&lt;p&gt;Finally, when doing current measurements, remember that the debug interface of the nRF51 consumes &amp;gt; 1 mA, so do a power-on-reset after flashing. See &lt;a href="https://devzone.nordicsemi.com/index.php/why-does-my-nrf51822-consume-1-ma-in-sleep"&gt;this question&lt;/a&gt; for details.&lt;/p&gt;
&lt;p&gt;Edit: Some clarifications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>