<?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: Dealing with uA,PORTC5,when forced low draws less current than floating,why? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346510#M16879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All digital CMOS inputs are a totem-pole stack of a PMOS and an NMOS FET.&amp;nbsp; If the pin is allowed to 'float' a voltage between Vil and Vih can develop on the pin, which starts to bring BOTH transistors into the start of enhancement-mode.&amp;nbsp; As such both transistors will exhibit higher leakage than 'completely off' when driven to a 'valid' digital input voltage (&amp;lt;Vil or &amp;gt;Vih).&amp;nbsp; 'Low Power' (and ideally ANY design) cannot allow CMOS input pins to 'float'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Aug 2014 14:23:01 GMT</pubDate>
    <dc:creator>egoodii</dc:creator>
    <dc:date>2014-08-09T14:23:01Z</dc:date>
    <item>
      <title>Dealing with uA,PORTC5,when forced low draws less current than floating,why?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346509#M16878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,please i nedd help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;having to do with a battery i need to have my&amp;nbsp; KL15&amp;nbsp; uC&amp;nbsp; waiting in VLLS3 mode.&lt;/P&gt;&lt;P&gt;I can measure the current drawn by my board by a switched array of shunt resistors,@1 ohm on my DMM the tenth of uA are stable and readable.&lt;/P&gt;&lt;P&gt;PORTC_5 is used for wake up by a piezoelectric sensor,and it does work.&lt;/P&gt;&lt;P&gt;The odd thing &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; is that when PTC5 is floating, i have 50uA consumption more than PTC5 kept low ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Why?PTC5 is configured as GPIO by mux in PORTC_PCR5, and as input in GPIOC_PDDR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Even hitting the piezo sensor,and so giving some transitions to PORTC5 has the same effect,and it happens even if the pin is not enabled for wake up(otherwise the measurement could not be done in this way).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;any hint?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Diego&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 17:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346509#M16878</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2014-08-08T17:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with uA,PORTC5,when forced low draws less current than floating,why?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346510#M16879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All digital CMOS inputs are a totem-pole stack of a PMOS and an NMOS FET.&amp;nbsp; If the pin is allowed to 'float' a voltage between Vil and Vih can develop on the pin, which starts to bring BOTH transistors into the start of enhancement-mode.&amp;nbsp; As such both transistors will exhibit higher leakage than 'completely off' when driven to a 'valid' digital input voltage (&amp;lt;Vil or &amp;gt;Vih).&amp;nbsp; 'Low Power' (and ideally ANY design) cannot allow CMOS input pins to 'float'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Aug 2014 14:23:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346510#M16879</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2014-08-09T14:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with uA,PORTC5,when forced low draws less current than floating,why?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346511#M16880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your interesting in our kineits product.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you tell me how did you configure your PTC5 as the VLLS3 wake up source? Did you configure the according LLWU module?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you enter in the VLLS3 successfully? could you tell me your consumption.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you can't use PTC5 wake up your vlls3,&amp;nbsp; I think maybe your configuration have some problems, so please check your configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you use PTC5 as the VLLS3 wake up source, you should configurate the following points:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, set the ACKISO bit in PMC_REGSC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (PMC_REGSC &amp;amp;&amp;nbsp; PMC_REGSC_ACKISO_MASK)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_REGSC |= PMC_REGSC_ACKISO_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Configure the PORTC_PCR5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can do it like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTC_PCR5 = ( PORT_PCR_MUX(1) |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_PCR_PE_MASK |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_PCR_PFE_MASK |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_PCR_PS_MASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,&amp;nbsp; configure the LLWU module&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configure the dege detection for the wakup pin in LLWU_P9,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, you can refer to the low power code in&amp;nbsp; our KL25 sample code, the link is :&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab and Test Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.exe"&gt;&lt;/A&gt;&lt;A href="http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab" target="test_blank"&gt;http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab&lt;/A&gt; and Test Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After your configuration is correct, then test it again.&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 06:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346511#M16880</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-08-11T06:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with uA,PORTC5,when forced low draws less current than floating,why?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346512#M16881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks JingJing Zhou,forgive me for being so late,in the last month it was vary difficult for me to be in contact with the forum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order i configure PTC5 without selecting any pull resistor,to have high Z ,so that the piezo is not loaded&lt;/P&gt;&lt;P&gt;PORTC_PCR5 =&amp;nbsp; (&amp;nbsp; PORT_PCR_MUX(01));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the wake up is configured in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOC_PDDR &amp;amp;= ~0x00000020; // set Port PTC5 as input once more,for safety&lt;/P&gt;&lt;P&gt; LLWU_PE3 &amp;amp;= ~LLWU_PE3_WUPE9_MASK; &lt;/P&gt;&lt;P&gt; LLWU_PE3 |=(WAKE_EVENT_ANY)&amp;lt;&amp;lt;LLWU_PE3_WUPE9_SHIFT;//WAKE_EVENT_ANY =3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ACKISO bit was previously set as you are showing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i think that the reason is the one that Earl Goodrich suggested.&lt;/P&gt;&lt;P&gt;In fact pulling slightly up or down the pin the problem disappears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 10:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dealing-with-uA-PORTC5-when-forced-low-draws-less-current-than/m-p/346512#M16881</guid>
      <dc:creator>diegocolombo</dc:creator>
      <dc:date>2014-10-01T10:24:52Z</dc:date>
    </item>
  </channel>
</rss>

