<?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>How to measure current on the nRF52840 Preview DK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42266/how-to-measure-current-on-the-nrf52840-preview-dk</link><description>I have a PCA10056 Preview DK that I want to measure CPU active current on (amongst other things). The DK version is 0.12.0. 
 
 Setup: 
 
 I have the DMM (Keysight 34465A) connected to P22. 
 SB40 is cut. 
 SW6 is in the &amp;quot;nRF ONLY&amp;quot; position. 
 I cut SB13</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jan 2019 17:14:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42266/how-to-measure-current-on-the-nrf52840-preview-dk" /><item><title>RE: How to measure current on the nRF52840 Preview DK?</title><link>https://devzone.nordicsemi.com/thread/164776?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 17:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e110848f-6b68-4206-b4ee-1fe6251fba8d</guid><dc:creator>catsunami</dc:creator><description>&lt;p&gt;It turns out&amp;nbsp;I had to add the following code before the HFCLK initialization to get the current draw to match the spec:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;for (uint8_t i = 0; i &amp;lt;= 8; i++)&lt;br /&gt; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint32_t test = NRF_POWER-&amp;gt;RAM[i].POWER;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I actually started with writing 0xFFFF to the POWER register, but switched to this and it still produced the correct result. It has something to do with the POWER register, because using a different register (I tried the same thing with NRF_P0-&amp;gt;IN) didn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t know why I had to do this. I tried this on Rev B and C chips with the same result. Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure current on the nRF52840 Preview DK?</title><link>https://devzone.nordicsemi.com/thread/164698?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 12:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:347a5a6c-0819-4e98-8ba0-90009b4b2a67</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Yes, 2mA is a bit too low, but your setup should be correct. What happens if you put __WFE(); in the main loop?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>