<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GPIO Impedance and switch in low power in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635055#M38286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the very good advises! The switch is on the board itself so no wiring. I only react on the edge of the switch, therefore my concern about the pull resistors. Otherwise I could use the nice idea of watch windows. The applications can be different. Sometimes the switch is switching a few times per hour but sometimes it a few times (or none) per year. So I stay in deepest sleep as possible and wake on the edge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's nice to see that the pull-up resistor can be that high, nice way to check and links. Although I don't know if the EMI problems gets too high. In this case I think the SPDT is the way to go. Maybe I can also make a SPDT with MOSFETS for the other optional digital input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2017 21:54:29 GMT</pubDate>
    <dc:creator>wilcovm</dc:creator>
    <dc:date>2017-01-23T21:54:29Z</dc:date>
    <item>
      <title>GPIO Impedance and switch in low power</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635052#M38283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm planning to use a MKL17Z256Vxx4 MCU in a extremely low power project. One of the GPIO pins is connected to a switch (which is sometimes on for days and sometimes off for days). Now I'm trying to figure out if I should use an external weaker pull-down or pull-up resistor. One of the things I cannot find is the digital input impedance (only of ADC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the digital input impedance when &lt;EM&gt;no internal&lt;/EM&gt; pull up or down is configured?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other advise on how to connect a switch in the most power efficient way is welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 16:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635052#M38283</guid>
      <dc:creator>wilcovm</dc:creator>
      <dc:date>2017-01-21T16:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Impedance and switch in low power</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635053#M38284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input impedance of GPIO inputs is (very) high but I don't have an actual value for it.&lt;/P&gt;&lt;P&gt;However, when using very low power modes you MUST avoid floating inputs since they will (drastically) increase the current consumption due to noise randomly switching the input stages.&lt;/P&gt;&lt;P&gt;This means that you should enable pull-up or pull-down resistors on inputs (or use external ones) or you should set pins as outputs (driving either '0' or '1').&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;In your specific case I would recommend &lt;SPAN style="text-decoration: underline;"&gt;disabling&lt;/SPAN&gt; the internal pull-up/down (it will cause about 160uA to flow due to the internal value in your worst case) and then use a potentiometer to find the optimal value:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;- 1. GPIO &lt;STRONG&gt;leakage&lt;/STRONG&gt; is specified as max. 1uA (across all temperatures), which is probably the most interesting parameter for you. It would mean that about 1.5Meg should be a &lt;SPAN style="text-decoration: underline;"&gt;max. value&lt;/SPAN&gt;.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;- 2. Do this in low leakage mode and ensure that current doesn't start increasing with larger values; if it does it means that noise on the input is the deciding factor (improbable with 1M)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;I expect about 1MOhm to be optimal.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See also &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkWNlsAoMly4" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=kWNlsAoMly4&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KL27Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL27Z.html&lt;/A&gt;&lt;SPAN&gt; for complete low power solutions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 17:39:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635053#M38284</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-21T17:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Impedance and switch in low power</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635054#M38285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Increased 'waste current' due to an input-pin at a voltage 'between the hard rails' is also due to partial turn-on of the nominally-off 'FET' of the input stacked-pair.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't mention how often you want to look at this switch input, in the larger context of what I assume is 'mostly' sleep-time (nor why the switch couldn't be SPDT, driving directly to either rail).&amp;nbsp; I would enable a pull-up (or down; in any case opposite to the switch-on state) shortly before each 'look time', and if the switch is OPEN leave such pull 'on' thereafter (to keep the pin biased to rail); if the switch is CLOSED turn it back off.&amp;nbsp; This does open a 'small window' where the switch would be CLOSED just AFTER that 'look', and then drag said pull-current until the 'next look', so up to one whole 'look cycle' time (unless of course edge-change on this input is a wake-event, prompting you to look right after some debounce).&amp;nbsp; You will have to decide if this total watt-seconds 'waste' is tolerable, but this avoids any 'leakage tradeoff' decisions for a constant, 'really high' pull resistor --- BTW, said 'leakage tradeoff' will also have to add consideration for PCB surface insulation resistance and/or for other wiring, considering the 'distance' to this switch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 22:01:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635054#M38285</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-01-21T22:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Impedance and switch in low power</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635055#M38286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the very good advises! The switch is on the board itself so no wiring. I only react on the edge of the switch, therefore my concern about the pull resistors. Otherwise I could use the nice idea of watch windows. The applications can be different. Sometimes the switch is switching a few times per hour but sometimes it a few times (or none) per year. So I stay in deepest sleep as possible and wake on the edge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's nice to see that the pull-up resistor can be that high, nice way to check and links. Although I don't know if the EMI problems gets too high. In this case I think the SPDT is the way to go. Maybe I can also make a SPDT with MOSFETS for the other optional digital input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:54:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635055#M38286</guid>
      <dc:creator>wilcovm</dc:creator>
      <dc:date>2017-01-23T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Impedance and switch in low power</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635056#M38287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see -- so you do need to specifically wake on both edges.&amp;nbsp; Well then yes, you are looking at SPDT or Mark's high-value pull-resistor, although I again caution you to consider, in that case, surface-insulation-resistance for the whole connection, especially in regard to any potential humidity concerns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 22:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635056#M38287</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-01-23T22:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Impedance and switch in low power</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635057#M38288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look up "Bus Keeper" :&amp;nbsp;&lt;A class="link-titled" href="https://en.wikipedia.org/wiki/Bus-holder" title="https://en.wikipedia.org/wiki/Bus-holder"&gt;Bus-holder - Wikipedia&lt;/A&gt;&amp;nbsp;which is two inverters and a resistor to hold the last state, which gets rid of pull resistors. &amp;nbsp; Things can be done with NAND or NOR Set/Reset flip-flop made from a couple of gates to get rid of the resistor and have more switch options. &amp;nbsp;Have you considered two push buttons rather than one switch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The environment of your device is important once start using high impedance resistors, false triggering can become a problem in a electrically noisy environment, motors for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in a switch that is not often moved do not over look the switches *minimum* clearing current and things like board cleaning. &amp;nbsp;Everyone knows switches have a maximum current handling capability, the opposite end of the current spectrum is rarely though about. &amp;nbsp;The rating can frequently be found in the switch data sheet or its quality analyses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a non-sealed switch the cleaning fluids put a film on the switch and low currents will not clear the film. &amp;nbsp;A sealed switch overcomes that problem, however it may have a short life if there is any arching (not likely here I guess, again it depends on the environment) without being exposed to air. &amp;nbsp;Some switches and relays have a pull-off tab to open a vent hole after cleaning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When going for LONG sleep times try to avoid QFN packages as they can trap flux under them which in turn can gather contaminants with time, &amp;nbsp;raising the sleep currents as the months pass. &amp;nbsp;If QFN's can't be avoided make sure there is a clear path for the cleaning fluid ingress and egress, by-pass-caps and such frequently become obstructions to cleaning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:32:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Impedance-and-switch-in-low-power/m-p/635057#M38288</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2017-01-24T13:32:07Z</dc:date>
    </item>
  </channel>
</rss>

