<?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>Kinetis MicrocontrollersのトピックRe: TWR-KW24D512 Low Power Demo power consumption</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KW24D512-Low-Power-Demo-power-consumption/m-p/497525#M30984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out.&amp;nbsp; There were 2 I/O that were consuming extra power due to bugs in the firmware:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;PORTC0, which is internally tied to the radio GPIO5 was consuming 140uA.&amp;nbsp; The issue is that the pin is configured as output-low during clock initialization in the &lt;EM&gt;BOARD_ExtClk_Setup_HookUp() &lt;/EM&gt;function, and it's not configured back to high-z (or disabled) prior to sleep.&amp;nbsp; Adding &lt;STRONG&gt;PORT_HAL_SetMuxMode(PORTC,0u,kPortPinDisabled);&lt;/STRONG&gt; after clock initialization corrected this issue.&amp;nbsp; The radio probably has a 22k pull-up internally, so it just sat there and drained power.&lt;/LI&gt;&lt;LI&gt;PORTD4, which is a simple LED control pin.&amp;nbsp; The issue is that the &lt;EM&gt;LED_Operate()&lt;/EM&gt; function does not toggle between output-low and high impedance.&amp;nbsp; Rather, it toggles between output high and output low.&amp;nbsp; To fix, simply edit the gLedOff_c: case within the LED_Operate() function.&amp;nbsp; Remove GPIO_DRV_SetPinOutput(kGpioLED1);, and replace it with &lt;STRONG&gt;PORT_HAL_SetMuxMode(PORTD,4u,kPortPinDisabled);&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After these 2 changes, the power consumption drops to the ~15uA range, which agrees with documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 21:47:05 GMT</pubDate>
    <dc:creator>calebrust</dc:creator>
    <dc:date>2016-03-29T21:47:05Z</dc:date>
    <item>
      <title>TWR-KW24D512 Low Power Demo power consumption</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KW24D512-Low-Power-Demo-power-consumption/m-p/497524#M30983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can’t get the TWR-KW24D512 demo board below ~210uA of current, any ideas?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m using the Low Power Demo (part of KW2xD_SMAC), and selecting MCU &lt;STRONG&gt;VLLS2&lt;/STRONG&gt;, and Radio &lt;STRONG&gt;Hibernate&lt;/STRONG&gt;, but power usage is above what I’d expect.&amp;nbsp; The firmware app implements a simple USB to serial terminal program (115200 baud)&lt;/P&gt;&lt;P&gt;C:\Freescale\KW2xD_SMAC\app\ieee_802_15_4\Low_Power_Demo\twrkw24d512\Source\Low_Power_DemoApp.c&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m measuring current through two precision 1Ohm resistors I installed at R6 and R8.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(R6=1Ohm) VdropR6 = 0.000050V. So the MCU is consuming 50uA &lt;/P&gt;&lt;P&gt;(R8=1Ohm) VdropR8 = 0.000160V. So the radio is consuming 160uA&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total = 210uA&lt;/STRONG&gt;, over 10x what I expect!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;…For resistor locations, see the schematic in Fig 3-9 of the TWR-KW2x reference manual &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fds.arm.com%2Fmedia%2Fresources%2Fdb%2Fplatform%2Ffreescale%2Ftwr_kw21d256%2FTWR-KW2XHWRM.pdf" rel="nofollow" target="_blank"&gt;http://ds.arm.com/media/resources/db/platform/freescale/twr_kw21d256/TWR-KW2XHWRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the Low-Power App note AN4857, the Radio should only consume ~1uA when in hibernate mode, and V_MCU should be 16.6-17.3uA while the MCU is in VLLS2.&amp;nbsp; It seems that there is a bug in the code, or some other source of power consumption. &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.nxp.com%2Ffiles%2Frf_if%2Fdoc%2Fapp_note%2FAN4857.pdf%3Ffpsp%3D1%26WT_TYPE%3DApplication%2520Notes%26WT_VENDOR%3DFREESCALE%26WT_FILE_FORMAT%3Dpdf%26WT_ASSET%3DDocumentation%26fileExt%3D.pdf" rel="nofollow" target="_blank"&gt;http://cache.nxp.com/files/rf_if/doc/app_note/AN4857.pdf?fpsp=1&amp;amp;WT_TYPE=Application%20Notes&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf&lt;/A&gt; (Table 1 and Table 5) &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In an effort to rule out a hardware problem, I tweaked the Low Power Demo firmware, and loaded it on my own KW2x board.&amp;nbsp; I’m experiencing very similar power consumption(250uA) in hibernate and VLLS2.&amp;nbsp; I believe there is some issue in the Low Power Demo source code?&amp;nbsp; I've attached the .srec file for anyone who might want to try it out on their TWR-KW24D512 board.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337366"&gt;Low_Power_Demo.srec.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 20:25:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KW24D512-Low-Power-Demo-power-consumption/m-p/497524#M30983</guid>
      <dc:creator>calebrust</dc:creator>
      <dc:date>2016-03-22T20:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-KW24D512 Low Power Demo power consumption</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KW24D512-Low-Power-Demo-power-consumption/m-p/497525#M30984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out.&amp;nbsp; There were 2 I/O that were consuming extra power due to bugs in the firmware:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;PORTC0, which is internally tied to the radio GPIO5 was consuming 140uA.&amp;nbsp; The issue is that the pin is configured as output-low during clock initialization in the &lt;EM&gt;BOARD_ExtClk_Setup_HookUp() &lt;/EM&gt;function, and it's not configured back to high-z (or disabled) prior to sleep.&amp;nbsp; Adding &lt;STRONG&gt;PORT_HAL_SetMuxMode(PORTC,0u,kPortPinDisabled);&lt;/STRONG&gt; after clock initialization corrected this issue.&amp;nbsp; The radio probably has a 22k pull-up internally, so it just sat there and drained power.&lt;/LI&gt;&lt;LI&gt;PORTD4, which is a simple LED control pin.&amp;nbsp; The issue is that the &lt;EM&gt;LED_Operate()&lt;/EM&gt; function does not toggle between output-low and high impedance.&amp;nbsp; Rather, it toggles between output high and output low.&amp;nbsp; To fix, simply edit the gLedOff_c: case within the LED_Operate() function.&amp;nbsp; Remove GPIO_DRV_SetPinOutput(kGpioLED1);, and replace it with &lt;STRONG&gt;PORT_HAL_SetMuxMode(PORTD,4u,kPortPinDisabled);&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After these 2 changes, the power consumption drops to the ~15uA range, which agrees with documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 21:47:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-KW24D512-Low-Power-Demo-power-consumption/m-p/497525#M30984</guid>
      <dc:creator>calebrust</dc:creator>
      <dc:date>2016-03-29T21:47:05Z</dc:date>
    </item>
  </channel>
</rss>

