<?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>nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18964/nrf52832-power-off-reset-with-uart-connected</link><description>Hi, 
 I wanted to know if the UART pins can cause any issues if kept connected to usb (Rx/Tx pins stable to 3.3V) and directly to the GPIOs of the nRF52, while performing a soft-reset or switching OFF and then ON the device. 
 I have a sensor (ADXL362</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Feb 2017 15:06:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18964/nrf52832-power-off-reset-with-uart-connected" /><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73302?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 15:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73837636-da3b-41d5-b6bc-8edb807447d4</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You will probably not damage the chip, but as you are out of spec we cannot promise anything.&lt;/p&gt;
&lt;p&gt;Input buffer is, well the input buffer, used to read the state of the pin. If the input buffer is disconnected you cannot read the state of the pin from the IN register. This has nothing to do with the protection diodes, those are on all the gpio pins regardless of their configuration. The gpio is configured as input with input buffer disconnected which means that they do nothing (don&amp;#39;t have any function). Configure them as output by default might give unwanted behavior (like shorts). Pull up is normally not used, so this should be off, it might also lead to leakage current (pin is low, pull up resistor is on).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73301?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 21:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f98d7c50-c35d-4897-a541-af718c885960</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Another question, by default at reset GPIO pins are configured to be INPUT with NOPULL and DISCONNECT INPUT BUFFER. What does actually &amp;quot;disconnect input buffer&amp;quot; mean? Wouldn&amp;#39;t it be safer to have the GPIO pins configured as output or input with pull-up by default?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73300?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 21:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c6e3abd-1d5e-41c7-9d8f-b01adca15fad</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Thank you Ole for the suggestion, however I cannot modify my actual board (just used for prototyping). Could my actual setting (UART Rx/Tx pins held at 3.3V leaking current throughout the nRF chip) cause any HW damages to the nRF itself? For instance, the nRF specification states that Pin in/out voltage should fall in the range -0.3V to Vdd+0.3V=1.87V. But this specification is not met when the main power source is removed. In such case pin connected to UART lines get 3.3V and Vdd happens to be 1.57V, thus (1.57+0.3)V=1.87V &amp;lt; 3.3V! Isn&amp;#39;t it causing a dangerous latch-up condition?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73298?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 12:09:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a76e482f-d34f-45fd-bb26-8ca62d6acf81</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;There is no way to completely disconnect the pins. The only solution is to connect a series resistance. This will limit the amount of current that can flow (the voltage drop will be proportional to the current).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73299?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 20:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75467983-17c1-4285-9762-e17621e8443d</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Yes, in my previous message I was stressing on the pins (rather than on the UART). As you said the problem is not the UART itself, but the rx/tx pins connected to the nRF and providing 3.3V even when the nRF is unpowered. I was wondering if there is any way (e.g. a nRF internal switch) that would allow me to force the nRF to keep the 2 GPIO pins (connected to the external UART RX and TX lines) &amp;quot;disconnected&amp;quot;/floating from the nRF internal circuitry.
Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73296?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 11:13:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c34ecc1a-ed80-4d37-838b-21ea38bbcf1d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You can add a series resistance of about 10K to limit the current.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73297?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 11:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a641c531-b22d-45fd-8f49-6726a96b9a23</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The problem is not with the UART, the problem is that there is voltage on one of the pins of the nRF when it is powered off. You will have to remove the voltage source when the nRF is powered off to remove the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73295?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 04:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8ba896-06cb-4e61-b671-d2ee54bc74ef</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Thank you Ole for your support. Your help together with this link are the answer: &lt;a href="https://devzone.nordicsemi.com/question/96567/nrf52832-why-when-using-nrf_drv_spi-with-an-adxl362-i-need-to-set-the-clock-in-high-drive-h0h1/?answer=111090#post-id-111090"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
It turned out that my sensor was not resetting according to its specifications. This was happening because the sensor did not get powered off properly (1.57V in due to UART pins).
Is there any way I could force the UART pins to &amp;quot;disconnect&amp;quot; so that any voltage on UART won&amp;#39;t affect the system?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73293?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 21:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81124921-5b2c-4810-9a46-433610e2a10a</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;As a test I&amp;#39;m just running an UART printing loop. When I power off the chip, messages stop been printed out via UART. When I power up nRF again, it starts again from the bootloader.
UART Tx and Rx are connected to pins P0.30 and P0.31, and they feed the nRF with 3.3V. The nRF itself then keeps Vdd to 1.57V.
1.57V is within the absolute maximum voltage supply rating for nRF52 (-0.3V to 3.3V), however it is smaller than the minimum recommended supply voltage (1.7V). This might explain why the firmware stops running.
In addition the nRF specification states as well that Pin in/out voltage should fall in the range -0.3V to Vdd+0.3V=1.87V, and this is not the case since nRF gets 3.3V in. I know I am looking at it in the opposite way, since power supply is not coming from Vdd directly, so I am not sure how such specification applies in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73294?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 14:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a0155cc-e479-4c7f-b20e-a12706f160d9</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The whole chip will stay powered if the voltage on a pin is supplying the chip. When you say that your firmware is not running, may it be because the code has entered an error condition and is stuck in the error handler?&lt;/p&gt;
&lt;p&gt;You can of course measure Vdd when the chip is powered off and the UART connector is still connected, to see if what I described in my last comment is the case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73292?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 20:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbea727e-a847-451c-8bf7-fca0d4af8dc5</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Do you mean that some power-blocks of the nRF stay powered up, while others switch off? Because for example my firmware stops running (even if UART is still connected) and starts again only when I power the nRF up again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Power OFF/Reset with UART connected</title><link>https://devzone.nordicsemi.com/thread/73291?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 11:51:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbdfb0fd-755e-4261-a002-8a5ec9ce5a88</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;If the RX/TX pins are 3.3V while powering off the nRF, the nRF will actually not be powered off because of  ESD protection diodes on the pins, see for example &lt;a href="https://www.google.no/search?q=esd+protection+diodes&amp;amp;espv=2&amp;amp;biw=1536&amp;amp;bih=832&amp;amp;source=lnms&amp;amp;tbm=isch&amp;amp;sa=X&amp;amp;ved=0ahUKEwin2Zyahr_RAhXKDCwKHcOsDDIQ_AUIBigB#imgrc=5NuXOrbPj39LUM%3A"&gt;this&lt;/a&gt; picture. When the voltage on the pin is higher than the Vdd plus the diode forward voltage drop, the diode will start to conduct current and the new Vdd will be the voltage on the input pin minus the forward voltage drop over the diode.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why this is messing up your sensor SPI readings. You should connect a logic analyzer to see if the data transferred is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>