<?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>NRF52 DK: ~60uA extra current draw when changing P0.27 to input!?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42688/nrf52-dk-60ua-extra-current-draw-when-changing-p0-27-to-input</link><description>Hello, 
 I&amp;#39;m using an NRF52 DK board. 
 I noticed that when I change P0.27 from the default (input / not connected to input buffer) to being an input pin connected to the input buffer, the current draw increases by ~60uA: 
 ``` 
 nrf_gpio_cfg_input(27</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Jan 2019 20:02:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42688/nrf52-dk-60ua-extra-current-draw-when-changing-p0-27-to-input" /><item><title>RE: NRF52 DK: ~60uA extra current draw when changing P0.27 to input!?</title><link>https://devzone.nordicsemi.com/thread/166594?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 20:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae80e757-783d-4b80-a9d0-b5c75eca2835</guid><dc:creator>martijnthe</dc:creator><description>&lt;p&gt;Thanks. I ended up checking on a bare board with the same chip and didn&amp;#39;t see any issues with P0.26/P0.27.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK: ~60uA extra current draw when changing P0.27 to input!?</title><link>https://devzone.nordicsemi.com/thread/166566?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 16:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee35dad8-255b-4787-94d7-dadada8d4783</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Hmm, edited as I see the upper schottky clamp only apples to channel 1, not the 3 data channels. That only affects P0.17.&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;&lt;em&gt;should&amp;nbsp;disconnect P0.26/P0.27 from the I2C pull-ups (R29 and R30)&lt;/em&gt;&amp;quot; .. ah, if only life were that simple. R29 and R30 can be clamped by internal schottky protection diodes within U7 as power switch voltage on the switch IC can rise above (VEXT+500mV) via (say) R29+R32 in series; if VEXT is Gnd that limits those voltages to 500mV-ish and allows current to flow between all those pins. To verify whether this is the root cause requires removing (say) R29 and checking the current draw again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also note P0.17 can possibly power up VEXT if driven high by the 0.5V schottky internal clamp on the NX3DV2567 switch itself. Perhaps start by ensuring P0.17 is floating or actively driven low (see edit note above).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK: ~60uA extra current draw when changing P0.27 to input!?</title><link>https://devzone.nordicsemi.com/thread/166406?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 08:42:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdfeaaa1-e212-43c8-94f3-209e2fe40ea8</guid><dc:creator>martijnthe</dc:creator><description>&lt;p&gt;Thanks for the hints.&lt;/p&gt;
&lt;p&gt;It looks like P0.26 and P0.27 are connected to U6 (a NX3DV2567 switch IC).&lt;/p&gt;
&lt;p&gt;But when SHIELD_DETECT is not connected to anything, it&amp;#39;s being pulled up by R39, which, in theory should&amp;nbsp;disconnect P0.26/P0.27 from the I2C pull-ups (R29 and R30). I measured&amp;nbsp;&lt;span&gt;P0.26/P0.27 and I don&amp;#39;t see them being pulled up. I also tried toggling the switch by connecting&amp;nbsp;SHIELD_DETECT to GND and only then they are indeed pulled up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;At any rate, I wonder if the switch is somehow causing the leakage.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will try measuring on a board that doesn&amp;#39;t have the switch connected.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK: ~60uA extra current draw when changing P0.27 to input!?</title><link>https://devzone.nordicsemi.com/thread/166378?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 22:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7af9d50-0dc0-4f93-be14-babe5345c2d8</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;This is perhaps covered in the&amp;nbsp;&lt;em&gt;nRF52832 Development Kit v1.1.x&amp;nbsp;User Guide&amp;nbsp;v1.2&lt;/em&gt; - see Table 5: pins P0.26 and P0.27 are used as i2c pins and have 4k7 pull-up resistors. This will introduce leakage into the input buffer when connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK: ~60uA extra current draw when changing P0.27 to input!?</title><link>https://devzone.nordicsemi.com/thread/166367?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 20:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94ad1c7c-122f-452b-b176-195de09fa3d1</guid><dc:creator>martijnthe</dc:creator><description>&lt;p&gt;P0.26 also seems to exhibit a similar problem.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m seeing&amp;nbsp;an even higher current draw, more like ~70uA extra.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also tried P0.24 and P0.25. They&amp;nbsp;don&amp;#39;t have the problem.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s so special about P0.26 and P0.27 that causes&amp;nbsp;the current draw to become&amp;nbsp;so high when used as input?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>