<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[GPIO pin behaviour in Deep Sleep mode]]></title><description><![CDATA[<p dir="auto">Just a clarification really before I add electrical complexity to my project that's not needed.</p>
<p dir="auto">Am I correct in assuming that regardless of pull-up or pull-down set on pins. Once we enter deep sleep mode all inputs and outputs will float ? Is this true even of the pins in the RTC domain, such as P8 ?</p>
<p dir="auto">The reason I ask is that I'm integrating a coulomb counter to monitor my active state battery consumption and need to pull a pin low on the counter to hold it in sleep mode.<br />
I'm guessing I'll need to do it with an external resistor and then pull it high in the code in order for it to stay low in deepsleep, is that correct ?</p>
]]></description><link>https://forum.pycom.io/topic/2481/gpio-pin-behaviour-in-deep-sleep-mode</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 12:50:13 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2481.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Jan 2018 11:55:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GPIO pin behaviour in Deep Sleep mode on Thu, 18 Jan 2018 11:55:24 GMT]]></title><description><![CDATA[<p dir="auto">Just a clarification really before I add electrical complexity to my project that's not needed.</p>
<p dir="auto">Am I correct in assuming that regardless of pull-up or pull-down set on pins. Once we enter deep sleep mode all inputs and outputs will float ? Is this true even of the pins in the RTC domain, such as P8 ?</p>
<p dir="auto">The reason I ask is that I'm integrating a coulomb counter to monitor my active state battery consumption and need to pull a pin low on the counter to hold it in sleep mode.<br />
I'm guessing I'll need to do it with an external resistor and then pull it high in the code in order for it to stay low in deepsleep, is that correct ?</p>
]]></description><link>https://forum.pycom.io/post/14691</link><guid isPermaLink="true">https://forum.pycom.io/post/14691</guid><dc:creator><![CDATA[wstallwood]]></dc:creator><pubDate>Thu, 18 Jan 2018 11:55:24 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO pin behaviour in Deep Sleep mode on Thu, 18 Jan 2018 14:06:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/74">@wstallwood</a><br />
I suppose you can use <code>pin.hold</code><br />
<a href="https://docs.pycom.io/chapter/firmwareapi/pycom/machine/Pin.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/firmwareapi/pycom/machine/Pin.html</a><br />
it restore state after sleep, but you must test if it then float during sleep<br />
It should not but..</p>
]]></description><link>https://forum.pycom.io/post/14698</link><guid isPermaLink="true">https://forum.pycom.io/post/14698</guid><dc:creator><![CDATA[livius]]></dc:creator><pubDate>Thu, 18 Jan 2018 14:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO pin behaviour in Deep Sleep mode on Thu, 18 Jan 2018 19:20:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/74">@wstallwood</a> you should probably clarify what deep sleep you are asking about:</p>
<ul>
<li>LoPy deep sleep</li>
<li>LoPy 4 deep sleep</li>
<li>deep sleep shield deep sleep</li>
<li>PySense deep sleep</li>
<li>PyTrack deep sleep</li>
</ul>
<p dir="auto">They behave quite differently...</p>
]]></description><link>https://forum.pycom.io/post/14731</link><guid isPermaLink="true">https://forum.pycom.io/post/14731</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Thu, 18 Jan 2018 19:20:13 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO pin behaviour in Deep Sleep mode on Fri, 19 Jan 2018 09:51:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1538">@jcaron</a> sorry that's a good point, we'll be deploying on L01 boards so no deep sleep shield required.</p>
]]></description><link>https://forum.pycom.io/post/14740</link><guid isPermaLink="true">https://forum.pycom.io/post/14740</guid><dc:creator><![CDATA[wstallwood]]></dc:creator><pubDate>Fri, 19 Jan 2018 09:51:23 GMT</pubDate></item><item><title><![CDATA[Reply to GPIO pin behaviour in Deep Sleep mode on Tue, 23 Jan 2018 11:17:25 GMT]]></title><description><![CDATA[<p dir="auto">Just in case anyone else searches for this. Yes pin.hold works during a deep sleep but as obvious as it is now it only works on pins in the RTC domain on the pinout (and naturally not the input only pins). You can set pin.hold on any pin but it's only effective on those.</p>
]]></description><link>https://forum.pycom.io/post/14890</link><guid isPermaLink="true">https://forum.pycom.io/post/14890</guid><dc:creator><![CDATA[wstallwood]]></dc:creator><pubDate>Tue, 23 Jan 2018 11:17:25 GMT</pubDate></item></channel></rss>